[Resolved] WPSP double date entry, and date clickable, why

Home Forums Support [Resolved] WPSP double date entry, and date clickable, why

Home Forums Support WPSP double date entry, and date clickable, why

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1631040
    Atefan

    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.

    #1631060
    Atefan

    Ok, i been able to remove the date with the plugin version 1.2.0-alpha.3

    but how to unlink the date?

    Thanks

    #1631684
    Tom
    Lead Developer
    Lead Developer

    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!

    #1631700
    Atefan

    I’m sorry, it works perfectly!

    #1631923
    Tom
    Lead Developer
    Lead Developer

    No problem, glad it’s working! ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.