Give help. Get help.

  • # October 30, 2012 at 5:37 am

    I have this line on another site that isn’t using wordpress and it works fine. I just need to know how to get this working in wordpress. This is going into the header area.

    < ?php include_once('/php/news.php'); ?>

    # October 30, 2012 at 6:56 am

    Where is your `news.php` file located in your theme?

    # October 30, 2012 at 9:23 am

    In fact it does when dealing with wordpress…

    You can not simply call it relatively, you need to call it absolutely using the WordPress constant “TEMPLATEPATH” like this:

    < ?php include _once(TEMPLATEPATH . '/php/news.php'); ?>
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.