WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mitzie
    Member
    Posted 10 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
    Member
    Posted 10 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

Tags

No tags yet.