We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support "read-more" link inline Reply To: "read-more" link inline


It’s not so much a bug as a way to create consistency. Having that value not set to false would mean the WPSP content read more link would be open to filters set by themes and other plugins.

What we can do is filter the content itself.

The downside of this is we need to target which pages we want to filter, as the WP content filter doesn’t have a way to know whether it’s in WPSP or not.

For example, if our list is on a page with the ID of 10, we could do this:

add_filter( 'the_content', function( $content ) {
    if ( is_page( 10 ) ) {
        return $content . '<a href="' . get_permalink() . '">Read more</a>'; 
    return $content;
} );