Can't get excerpt to work on this page template
-
Here is my code,
I can’t seem to get any sort of teaser text to appear for some reason, I’m stil a novice with php so help is greatly appreciated.
<?php /* * Template Name: All Posts */ ?> <?php get_header(); ?> <div class="content-break"> <div class="wrapper"> <div class="one notopmargin post-wrapper"> <?php $debut = 0; //The first article to be displayed ?> <?php while(have_posts()) : the_post(); ?> <?php $myposts = get_posts('numberposts=-1&offset=$debut'); foreach($myposts as $post) : ?> <h2><?php the_title(); ?></h2> <p> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>">Read More...</a></p> <?php endforeach; ?> <?php endwhile; ?> </div> </div> <div style="clear:both"></div> </div> </div> <?php get_footer(); ?>
Continue https://www.ads-software.com/support/topic/cant-get-excerpt-to-appear?replies=1
- The topic ‘Can't get excerpt to work on this page template’ is closed to new replies.