I went to my wordpress admin panel and created a page with this loop in it:
<br /> <?php global $post; $myposts = get_posts('numberposts=100&order=DESC&orderby=post_date&category=56'); foreach($myposts as $post) : setup_postdata($post); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); echo "<br />"; ?></a> <p><?php the_excerpt(); ?></p><br /> <?php endforeach; ?>
The loop displays the_content in stead of the_excerpt. I have read over template hierarchy 2-3 times and I even created a new page template from scratch and no matter how I work things out, I can’t get the_excerpt function to display the excerpt. It only displays the entire content of the post.
I really need some honest help here, I have been playing with this for a couple of days now.
- The topic ‘Desperately trying to use the_excerpt function on a page’ is closed to new replies.