WordPress.org

Support

Support » How-To and Troubleshooting » WP not working because of another PHP command?

WP not working because of another PHP command?

  • 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?

Viewing 1 replies (of 1 total)
  • Daynah
    Member

    @phpprincess

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘WP not working because of another PHP command?’ is closed to new replies.