[Resolved] Bug in GP 3.0.2

Home Forums Support [Resolved] Bug in GP 3.0.2

Home Forums Support Bug in GP 3.0.2

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1494630
    Sanu Kumar

    The date shows after the content from the day since I updated GP 3.0
    Screenshot: https://ibb.co/RQBXQ3t

    Sometimes it shows “Last Updated date” sometimes it shows the only date like – “October 2020”

    #1494707
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Are you using any custom functions for the post meta? If so, can you share them here?

    Thanks!

    #1494901
    Sanu Kumar
    add_filter( 'generate_post_author_output', function() {
        return sprintf( ' <span class="byline">%1$s</span>',
            sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%4$s<a href="%1$s" title="%2$s" rel="author"><span class="author-name" itemprop="name">%3$s</span></a></span>',
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ),
                esc_html( get_the_author() ),
                get_avatar( get_the_author_meta( 'ID' ) )
            )
        );
    } );
    
    add_filter( 'generate_header_entry_meta_items', function() {
        return array(
            'author',
            'comments-link',
            'date',
        );
    } );
    
    add_filter( 'generate_footer_entry_meta_items', function( $items ) {
        return array(
            'date',
            'categories',
        );
    } );
    #1495518
    David
    Staff
    Customer Support

    Hi there,

    i checked several posts and all of them displayed the Avatar followed by Last Update date.
    Maybe browser caches need clearing ?

    #1498001
    Sanu Kumar

    I cleared the cache but still showing, does it look all good from your end?

    #1498143
    David
    Staff
    Customer Support

    I checked several posts, and refreshed them and they all display like this:

    #1498196
    Sanu Kumar

    Have you checked after the content? Here: https://ibb.co/q1cjf9t

    I saw sometime like this:https://ibb.co/8bcfQbQ
    and sometimes like you mentioned above.

    #1498639
    Tom
    Lead Developer
    Lead Developer

    The date is in your footer meta because you’ve added it here:

    add_filter( 'generate_footer_entry_meta_items', function( $items ) {
        return array(
            'date', // This will add the date.
            'categories',
        );
    } );

    If you want to remove it, do this instead:

    add_filter( 'generate_footer_entry_meta_items', function( $items ) {
        return array(
            'categories',
        );
    } );
    #1499174
    Sanu Kumar

    Thanks, Tom! It works but one thing I still have to do is – sometimes it shows me this: https://ibb.co/8bcfQbQ

    and sometimes it shows me a date like this: “Last Updated On….”. I want to stick glue with this only.

    How to fix this?

    #1500169
    Tom
    Lead Developer
    Lead Developer

    You have this CSS added which is adding that text: https://www.screencast.com/t/yOasH7hjOdtJ

    Do you want to remove the text, or always have it say last updated on?

    #1500221
    Sanu Kumar

    always have it say last updated on

    #1500461
    Tom
    Lead Developer
    Lead Developer

    Try changing it to this:

    .posted-on .updated:before,
    .posted-on .entry-date:before {
        content: " Last Updated On ";
    }
    #1500959
    Sanu Kumar

    thanks Tom

    #1501719
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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