• Resolved marknem

    (@marknem)


    I am using Virtue with the [page-list] plugin. Whenever a post has an Excerpt defined there’s no read more link. I really need to have one. Any suggestions? I’m comfortable with PHP so any solution would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • By default the read more link isn’t added to a custom excerpt, it’s supposed to give you total control over the excerpt. But you can also add this function using a child theme functions.php file.

    function manual_excerpt_more( $excerpt ) {
    	$excerpt_more = '';
    	if( has_excerpt() ) {
        	$excerpt_more = '&nbsp;<a href="' . get_permalink() . '" rel="nofollow">[Read more]</a>';
    	}
    	return $excerpt . $excerpt_more;
    }
    add_filter( 'get_the_excerpt', 'manual_excerpt_more' );

    That function can be found here: http://www.wpmayor.com/add-read-link-manual-excerpts/

    Kadence Themes

    Thread Starter marknem

    (@marknem)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Post Excerpt and [page-list] Plugin’ is closed to new replies.