• 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?

Viewing 1 replies (of 1 total)
  • Thread Starter cheriejd

    (@cheriejd)

    I got it to work with the excerpt by changing the permalink structure, mine was bad. I am now using %postname%.

    Still doesn’t work with the_content, but does work with custom excerpts.

Viewing 1 replies (of 1 total)
  • The topic ‘Page with posts, the_excerpt does not link’ is closed to new replies.