Page with posts, the_excerpt does not link
-
I have a page template that will grab a variety of posts to display. I have a post that is exceptionally long and I want to only show an excerpt of that post.
Using either the general display for the excerpt or the custom excerpt, the […] will not link to the rest of the content. I have tried using the <!–more–> in the post also with the_content. Still no link to the rest of the post.
Here is my ‘code’:
<?php
// retrieve one post with an ID of 120
query_posts(‘p=120’);global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;// the Loop
while (have_posts()) : the_post();
// the content of the post
the_excerpt(‘Read the full post ?’);
endwhile;
?>Any thoughts?
- The topic ‘Page with posts, the_excerpt does not link’ is closed to new replies.