Forums

Showing a list of posts on my static-front-page! (5 posts)

  1. 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?

  2. vtxyzzy
    Member
    Posted 2 years ago #

    It sounds like you need multiple loops - one for the front-page, and another for the posts.

    See the section titled 'Mullet Loop' here.

  3. nazcar
    Member
    Posted 2 years ago #

    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

  4. seiomon01
    Member
    Posted 2 years ago #

    Fixed it. Cheers

  5. vtxyzzy
    Member
    Posted 2 years ago #

    OK. Please mark topic Resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.