I have the following code for looping through recent news entries in my site:
<?php $my_query = new WP_Query('cat=1&limit=2&orderby=ID&order=ASC'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <!-- Display the Title as a link to the Post's permalink. --> <p class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php the_excerpt(); ?> <?php endwhile; ?>
It works great.
Except I can’t seem to get rid of ‘Continue reading →’ at the end of my excerpts.
The script sample above is from header.php
Can anyone help me remove Continue Reading or at least change it to something else?
- The topic ‘Remove "Continue Reading" from TwentyTen’ is closed to new replies.