WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function: have_posts() in... (3 posts)

  1. Mattice
    Member
    Posted 8 years ago #

    Every time I visit my site this error shows: Fatal error: Call to undefined function: have_posts() in /home/fhlinux203/t/totallychillin.co.uk/user/htdocs/index.php on line

    What's wrong?!

  2. Kafkaesqui

    Posted 8 years ago #

    Your index.php doesn't appear to be part of the normal WordPress theme structure. Does it have an include for the wp-blog-header.php file, which is needed to turn a regular PHP document into a "WordPress-enabled" one?

    Try adding this to the very beginning of it:

    <?php include('./wp-blog-header.php'); ?>

    Make sure the path to wp-blog-header.php is correct.

  3. Mattice
    Member
    Posted 8 years ago #

    Thanks lol, everything's fine now! I'm a newbie to wordpress please forgive me for been dumb!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags