wordpress - Loop not working on custom front page -


instead of using index.php front page, i've created custom page , changed "front page displays" setting in "reading settings" tab accordingly.

loops don't seem working custom front page, although still work on index.php.

<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <--- post content --> <?php endwhile; ?> <?php else : ?> <?php endif; ?> 

what might doing wrong? there other bit of code need include?

update:

to clarify, need home page custom page because i'm using custom fields client can edit bits of content enough. why i'm not using index.php or home.php

if trying make custom homepage can create home.php , used instead.

if using more 1 loop make sure reset loop.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -