Archived topic
WPSP double date entry, and date clickable, why
4 replies · Started by Atefan on January 23, 2021
Hello,
after this topic: https://generatepress.com/forums/topic/i-use-only-show-updated-date-but-in-latest-post-not-showing/
i been thinking i just copy past from one website to a nother the info.
it nearly worked;)
i got a double entry now, one is the created date of post and under it the updated date.
i would like to show only the updated date and without a clickable link.
Ok, i been able to remove the date with the plugin version 1.2.0-alpha.3
but how to unlink the date?
Thanks
You can do this:
add_filter( 'wpsp_date_output', function( $output, $settings, $time_string ) {
return sprintf(
'<span class="wp-show-posts-posted-on wp-show-posts-meta">
%s
</span>',
$time_string
);
}, 10, 3 );
Please be sure to use the WPSP forum for WPSP-specific questions :)
Thanks!
I'm sorry, it works perfectly!
No problem, glad it's working! :)