• thenbillsaid

    (@thenbillsaid)


    Trying to figure out how to display only the excerpt of a post and then link it to the full post.

Viewing 1 replies (of 1 total)
  • jmonroesmith

    (@jmonroesmith)

    This is a very simple example for a single excerpt:

    <?php
    echo '<p><a href="';
    echo the_permalink();
    echo '">';
    echo the_excerpt();
    echo '</a></p>';
    ?>

    You just wrap the_excerpt() in a anchor tag.

Viewing 1 replies (of 1 total)
  • The topic ‘insert link from excerpt to full blog’ is closed to new replies.