Thanks. I’ve checked into all that and I’ve managed to get the excerpts to show, but the issue I’m having now is that it shows the excerpts followed by a second round of all posts in the category displayed in full. Here’s the amended code that I’m using:
<?php query_posts('category_name=news&showposts=999'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 style="padding-top:24px"><a href="<?php the_permalink()?>"><?php the_title()?></a></h2>
<?php the_excerpt(); ?>
<?php endwhile; endif; ?>
I’m not sure why it’s posting the articles twice, once as an excerpt and then a second time as a full article, but I just want the excerpt. Any idea what’s causing this?
from your 5 lines of code, it is not possible to tell why.
please paste the full code of the template into a http://pastebin.com/ and post the link to it here – how-to: http://codex.wordpress.org/Forum_Welcome#Posting_Code
Sorry for the late response, alchymyth. http://pastebin.com/SiNJwTuG
this a page.php code you sure you want just excerpts as blog page is the normally used excerpts and for that index.php file is used.
Change this this line <?php the_content(); ?> to <?php the_excerpt(); ?>
govepatel, yes, I’m sure. I’m already showing all posts on the home page. I wish to show only post excerpts from a particular category on this page, hence the page template.
I am doing that on my website for that you can use custom menus click on my name to see example bottom menu click on wordpress
How about just providing me with a direct link.