Home › Forums › Pro Support › Add Post Title to read more… › Reply To: Add Post Title to read more…
December 26, 2019 at 10:27 am
#12472
Keymaster
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 🙂