Loop not working on custom front page
-
Instead of using index.php as my front page, I’ve created a custom page and changed the “Front page displays” setting in the “Reading Settings” tab accordingly.
I need for the home page to be a custom page because I’m using custom fields so the client can edit bits of content easily enough. This is why I’m not using index.php or home.php
Loops don’t seem to be working with my custom front page, although they still work on index.php.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <--- POST CONTENT --> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
What might I be doing wrong? Is there some other bit of code I need to include?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Loop not working on custom front page’ is closed to new replies.