Recent posts on homepage showing full post not excerpt
-
I have managed to get recent posts showing on my homepage which is working well. They only problem i have is that the full post and not the excerpt is showing.
<div id="home-news-container"> <?php query_posts('cat=#&posts_per_page=3'); ?> <?php while (have_posts()) : the_post(); ?> <div class="home-post-container"> <div class="home-post-thumb"> <a href="<?php echo get_permalink(); ?>"> <?php the_post_thumbnail('large_wide'); ?> </a> </div> <div class="home-post-copy"> <h4> <a href="<?php echo get_permalink(); ?>"> <?php the_title(); ?> </a> </h4> <h5> <?php the_date(); ?> </h5> <?php the_excerpt(); ?> <div class="home-news-readmore"> <a href="<?php echo get_permalink(); ?>">read more</a> </div> </div> </div> <!-- end home-post-container --> <?php endwhile; ?> <?php wp_reset_query(); ?> <div class="home-news-readmore news-extra"> <a href="">more news</a> </div> </div> <!--- end home-post-container -->
I don’t understand what the problem is to be honest. I created a new full width template for the homepage which i thought might be causing it but its not. Bit stumped to be honest. Any help would be greatly appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Recent posts on homepage showing full post not excerpt’ is closed to new replies.