WordPress.org

Ready to get started?Download WordPress

Forums

Add Read More link next to customized excerpt (2 posts)

  1. juliabarry
    Member
    Posted 1 year ago #

    I'm trying to add a Read More link next to the excerpt, and I see that the theme I'm building on has changed excerpt_more to path_excerpt_more.

    But when I try to use that like this:

    <div class="entry-summary">
    	  <?php the_excerpt(); ?><?php path_excerpt_more(); ?>
    </div>

    ...no Read More link appears. What else do I have to do to get the link to print?

    I also tried hard coding it in, but the link refers back to the homepage, rather than connecting to the blogpost's URL:
    <?php the_excerpt(); ?><a href="<?php get_permalink($post->ID) ?>">Read more</a>

    We're not using <!--more--> to create the excerpt, but rather the excerpt meta box on the post page, if that makes a difference.

    Thanks!

  2. juliabarry
    Member
    Posted 1 year ago #

    Anyone have any tips on this? Much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic