• Jared Cunha

    (@blackslatemedia)


    I’m sure this may have been asked before, but I could not find an answer for the life of me. What I am trying to do is have a brief list of archives (the latest 2 or 3 posts) with excerpts listed on my homepage, while excluding anything listed in category 4.

    To see what I’m talking, look at lower right hand side of my page.

    https://www.blackslatemedia.com

    Any advice or a point in the right direction will be an enormous help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Perhaps get_posts() can select the posts that you want to show.

    Or you could create a second loop with query_posts().

    Thread Starter Jared Cunha

    (@blackslatemedia)

    Thanks, I found a partial solution with this:

    <?php
    $lastposts = get_posts('numberposts=3');
    
    foreach($lastposts as $post) :
        setup_postdata($post);
        ?>
        <h4><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h4>
        <?php the_excerpt(); ?>
    <?php endforeach; ?>

    I still need to go back and style the links now.

    I think I can figure the rest from here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List a brief archive with excerpt’ is closed to new replies.