{"id":6308297,"date":"2015-07-08T15:47:48","date_gmt":"2015-07-08T15:47:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/require-once-include\/"},"modified":"2016-08-30T15:16:23","modified_gmt":"2016-08-30T15:16:23","slug":"require-once-include","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/require-once-include\/","title":{"rendered":"Require Once \/ Include"},"content":{"rendered":"<p>Hello:<\/p>\n<p>I have set a $url in a setup.php file that lives in my \/childtheme directory. When I use the code below, it doesn&#8217;t use the $url set from my setup.php, but from the existing page. If I hardcode my original script for the button on a template level, it works fine, but I would prefer to use this method, since I would have more flexibility in adding the button to specific regions. Is there a way to include my setup.php on the plugin, so it&#8217;s pulling from the setup.php vs. echoing the current URL? Is there another suggested method?<\/p>\n<p>&lt;div class=&#8221;button&#8221;&gt;<a href=\"[insert_php]echo $url;[\/insert_php]\">Ready to get started? Click Here.<\/a><\/p>\n<p>Thanks!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/insert-php\/<\/p>\n","protected":false},"template":"","class_list":["post-6308297","topic","type-topic","status-closed","hentry","topic-tag-plugin-modification","topic-tag-require-once"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6308297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6308297\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6308297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}