@helgipetersen
You might need to use a custom function. Also remove the above function with the null like I told you previously.
function filter_crp_after_list_item( $after_list_item, $result ) {
$permalink = get_permalink( $result->ID );
$permalink = sprintf( '<a href="%1$s">%2$s</a>', esc_url( $permalink ), __( 'Read more', 'contextual-related-posts' ) );
$after_list_item = $permalink . $after_list_item;
return $after_list_item;
}
add_filter( 'crp_after_list_item', 'filter_crp_after_list_item', 10, 2 );
`
I’ve tested this with my install and it displays well.
-
This reply was modified 3 years, 1 month ago by Ajay.