WP not working because of another PHP command? (2 posts)

  1. mitzie
    Posted 12 years ago #

    I used a PHP command in the header.inc, and it suddenly screws up my WP cos now my WP shows "Sorry, no posts matched your criteria." instead of the blog entries.
    The PHP command I use is this:
    <? include("/home/u2634/domain/duckness.org/web/_calendar/list.php")?>
    If I put this in the header, WP shows the No Posts thing. If I delete this line, WP shows normally. Is there any fix that can be made for both to work together?

  2. Daynah
    Posted 12 years ago #

    First of all, I suggest your rename header.inc to header.inc.php so that no one can view your PHP source code from a browser.
    And as for the list.php. Do you have the source code to it? Or can we find that online somewhere? You're most likely using a variable that WordPress is also using. A few of the common ones are $m, $cat, $p, and $c.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.