Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End include_once issue Reply To: include_once issue

#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_urlhttp://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!