How Do I Get Category Pages To Show Post Excerpts? |
|
David P.
|
At my site, the top left sidebar widget is "categories" (on the site it's labeled as "directory")..... but when you click on one of the category links, it only shows one post from that category and in full length, and the only way to see other posts in the category is by page-scrolling via links above the post.
I'd like visitors to see excerpts of (for example) 10 or 12 posts so they can browse and choose the post that interests them most in whichever category they've chosen....
Can you advise how I should tweak to accomplish this?
If it helps to see the site, here it is:
http://www.overseastravelinsuranceusa.com/
Thanks!
David
|
|
Garry
|
I have not tested personally but following links may be helpful:
http://www.howtogeek.com/howto/blogging/how-to-display-all-posts-on-the-category-page-in-wordpress/
http://wpgarage.com/code-snippets/display-posts-from-specific-categories-on-a-page/
http://www.dagondesign.com/articles/latest-post-from-each-category-plugin-for-wordpress/
|
|
David P.
|
Hi Garry, I appreciate the plugin referrals.
I'm thinking that there's a way to modify the PHP to do this though.
I'm all for plugins, but I think for what I'm trying to do, modifying the php will be the way to go, I'm just not sure how to do it...
Anyone??
Thanks!
David
|
|
David P.
|
Okay, I'm a little embarrassed because I just realized I already posted this same question back in July of '09 - Bob gave me the reply below, which did work.
BUT - I'd sure like to know how to tweak the code so that tag & category pages show more than one excerpt; I'd like my site visitors to be able to see a number of excerpts to choose from rather than have to click on "previous entries" - can you help?
===============
Posted: 7/19/2009
Quote message
I sometimes replace the following in archive.php
<?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry »', 'kubrick')); ?>
with this
<?php the_excerpt(); ?>
This gives you the excerpt in tag, category and search listings. The excerpt will be your hand crafted one or the first 55 words of the post.
- Bob
==============
THANKS!
David
|
|
|
|