blackslatemedia
Member
Posted 4 years ago #
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.
http://www.blackslatemedia.com
Any advice or a point in the right direction will be an enormous help.
Kwebble
Member
Posted 4 years ago #
Perhaps get_posts() can select the posts that you want to show.
Or you could create a second loop with query_posts().
blackslatemedia
Member
Posted 4 years ago #
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.