Support » Fixing WordPress » Page includes not being found out of WP root

  • Now I’m sure I being a total numpty but I have a few pages outside of the WP root and I am calling the includes from my themes folder like so (see code here) http://www.nuveautek.com/pagecode.txt but I am having real trouble understanding why a non-wp include cannot becalled while wp includes can.

    WP include: ‘<?php get_footer(); ?> ‘
    My include: ‘<?php include (‘sidebar_cityguide.php’); ?>’

    Can you give me a slap and tell me what I don’t understand? 🙂

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • skippy

    (@skippy)

    Member

    Try specifying the full path to the non-WP file you’re trying to include.

    Ah I was trying to avoid that in case I change themes but I guess thinking about it that won’t be possible will it?

    I wasn’t understanding why the wp includes pull in and not the other ones.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page includes not being found out of WP root’ is closed to new replies.