How to Make Posts Show Excerpt
-
I am using zeeMagazine Theme and am trying to make my homepage show blog post excerpts instead of the whole posts.
I put this code <?php the_excerpt(); ?> in the : loop-single.php file and removed the <?php the_content(); ?> but it is still showing the full posts.
I am not sure what else to do there is no <?php the_content(); ?>
in the index file here is some code from my index.php<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( ‘loop’, ‘index’ );
endwhile; ?>
<?php if(function_exists(‘wp_pagenavi’)) { // if PageNavi is activated ?>
<div class=”more_posts”>
<?php wp_pagenavi(); ?>
</div>
<?php } else { // Otherwise, use traditional Navigation ?>
<div class=”more_posts”>
<span class=”post_links”><?php next_posts_link(__(‘« Older Entries’, ‘themezee_lang’)) ?> <?php previous_posts_link (__(‘Recent Entries »’, ‘themezee_lang’)) ?></span>
</div>
<?php }?><?php endif; ?>
</div>
<?php get_sidebar(); ?>
can anyone help? Any other info you need let me know. Thanks
- The topic ‘How to Make Posts Show Excerpt’ is closed to new replies.