Home › Forums › Back End › include_once issue › Reply To: include_once issue
July 22, 2013 at 11:59 pm
#144168
asiek
Participant
@chrisburton @traq FINALLY found the main issue ^.^
I was trying to get a file from wp-content/plugins the whole entire time…
I found [this page](http://codex.wordpress.org/Function_Reference/content_url “http://codex.wordpress.org/Function_Reference/content_url”), and there ya have it!
content_url()
is what I should’ve been using!!!
I used this line to get everything from /metaboxes directory:
define( 'CUSTOM_METABOXES_DIR', content_url() . '/mu-plugins/metaboxes' );
NOW, I can register all CPT and Metaboxes from my must-use file instead of using my functions file…
Thanks for your time guys!