I'm currently creating a bunch of (empty) pages and performing conditionals such as is_page('Blabla') on it, which increases my page.php significantly. I'm already using require_once for different content, but is there a cleaner way of doing this?

1 Answer 1


Wordpress has a function for including template parts, which you can use for that purpose : get_template_part

You can also use include(TEMPLATEPATH . '/includes/myfunction.php');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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