seiomon01
Member
Posted 2 years ago #
I would like to show, only the_excerpt() - with a number of lets say four - on my front-page where I've set up my own customized template. I've start digging around the post template tags and such but I can't seem to actually get the post there.
I get a post with no content, just a heading saying my front-page name and the time and date for that.
Anyone might know the issue?
It sounds like you need multiple loops - one for the front-page, and another for the posts.
See the section titled 'Mullet Loop' here.
you can customize the appearance of your frontpage(usually the index.php of your theme), you can put the loop
<?php if(have_posts());?>
<?php while(have_posts()); the_post();?>
// The Stuff... Custom HTML & PHP Code - title - time - date
<?php the_excerpt() ?>
<?php else;?>
<?php endif;?>
i implemented it on this site
seiomon01
Member
Posted 2 years ago #
OK. Please mark topic Resolved.