Ready to get started?Download WordPress


Page includes not being found out of WP root (3 posts)

  1. Silvetti
    Posted 9 years ago #

    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? :)


  2. skippy
    Posted 9 years ago #

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

  3. Silvetti
    Posted 9 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.