WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

All my WordPress files are in:


and the classes I want to call are in:


Would I use the include_once() function or is there a WordPress function? And how would I do it?


share|improve this question

Include this in your theme functions,

    $includes_path = 'the root folder you want to call';
    require_once $includes_path . 'the_class_you_are_calling.php';

Also make sure you have the privileges access... I know it's dummy but I've been there done that...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.