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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter mattice

    (@mattice)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to undefined function: have_posts() in…’ is closed to new replies.