WordPress.org

Support

Support » Themes and Templates » Themia Lite » [Theme: Themia Lite] 404 page not displaying correctly

[Theme: Themia Lite] 404 page not displaying correctly

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve noticed this as well.

    The problem with the 404.php page is that the theme author included The Loop in it – the part that says:

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
     // All the meaningful stuff
    <?php endwhile; ?>

    Logically, this says “If there are some posts or pages that match the query then show them in the section that follows”. Well, a 404 page is there for when a mistake is made and there are no posts or pages that match the query. So the section that follows never gets called, because the if returns false.

    Delete the code calling the loop as well as the ‘endwhile’ code and it works like a charm.

    @ garydarling

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: Themia Lite] 404 page not displaying correctly’ is closed to new replies.
Skip to toolbar