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 Add Post Title to read more… Reply To: Add Post Title to read more…


Hi there,

Give this a shot:

add_filter( 'wpsp_read_more_output', function( $output, $settings ) {
    return sprintf( '<div class="wpsp-read-more"><a title="%1$s" class="%4$s" href="%2$s">%3$s</a></div>',
        the_title_attribute( 'echo=0' ),
        esc_url( get_permalink() ),
        'Read more ' . get_the_title(),
        esc_attr( $settings['read_more_class'] )
}, 10, 2 );

Let me know 🙂