{"id":2710,"date":"2016-07-25T14:19:04","date_gmt":"2016-07-25T14:19:04","guid":{"rendered":"https:\/\/www.mjtnet.com\/blog\/?p=2710"},"modified":"2016-07-25T14:19:04","modified_gmt":"2016-07-25T14:19:04","slug":"relative-paths-for-portable-macros-%e2%80%93-script_dir-and-bmp_dir-explained-recap","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2016\/07\/25\/relative-paths-for-portable-macros-%e2%80%93-script_dir-and-bmp_dir-explained-recap\/","title":{"rendered":"Relative Paths for Portable Macros \u2013 SCRIPT_DIR and BMP_DIR Explained [Recap]"},"content":{"rendered":"<p>Are your macros reading from other files? Find out how to avoid hard coding file paths and use relative folders:<\/p>\n<p><a href=\"http:\/\/help.mjtnet.com\/article\/167-relative-paths-for-portable-macros-explaining-scriptdir-and-bmpdir\">http:\/\/help.mjtnet.com\/article\/167-relative-paths-for-portable-macros-explaining-scriptdir-and-bmpdir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are your macros reading from other files? Find out how to avoid hard coding file paths and use relative folders: http:\/\/help.mjtnet.com\/article\/167-relative-paths-for-portable-macros-explaining-scriptdir-and-bmpdir<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2710"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=2710"}],"version-history":[{"count":1,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2710\/revisions"}],"predecessor-version":[{"id":2711,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2710\/revisions\/2711"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=2710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=2710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=2710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}