- This topic has 13 replies, 3 voices, and was last updated 3 years, 5 months ago by Tom.
-
AuthorPosts
-
October 18, 2020 at 11:34 am #1494630Sanu Kumar
The date shows after the content from the day since I updated GP 3.0
Screenshot: https://ibb.co/RQBXQ3tSometimes it shows “Last Updated date” sometimes it shows the only date like – “October 2020”
October 18, 2020 at 12:29 pm #1494707TomLead DeveloperLead DeveloperHi there,
Are you using any custom functions for the post meta? If so, can you share them here?
Thanks!
October 18, 2020 at 7:21 pm #1494901Sanu Kumaradd_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', ); } );
October 19, 2020 at 7:34 am #1495518DavidStaffCustomer SupportHi there,
i checked several posts and all of them displayed the Avatar followed by Last Update date.
Maybe browser caches need clearing ?October 21, 2020 at 1:34 am #1498001Sanu KumarI cleared the cache but still showing, does it look all good from your end?
October 21, 2020 at 3:57 am #1498143DavidStaffCustomer SupportI checked several posts, and refreshed them and they all display like this:
October 21, 2020 at 4:51 am #1498196Sanu KumarHave 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.October 21, 2020 at 8:56 am #1498639TomLead DeveloperLead DeveloperThe 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', ); } );
October 21, 2020 at 8:17 pm #1499174Sanu KumarThanks, 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?
October 22, 2020 at 9:03 am #1500169TomLead DeveloperLead DeveloperYou 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?
October 22, 2020 at 9:44 am #1500221Sanu Kumaralways have it say last updated on
October 22, 2020 at 1:07 pm #1500461TomLead DeveloperLead DeveloperTry changing it to this:
.posted-on .updated:before, .posted-on .entry-date:before { content: " Last Updated On "; }
October 23, 2020 at 3:18 am #1500959Sanu Kumarthanks Tom
October 23, 2020 at 1:10 pm #1501719TomLead DeveloperLead DeveloperYou’re welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.