- This topic has 24 replies, 4 voices, and was last updated 2 years, 2 months ago by Ying.
-
AuthorPosts
-
November 5, 2022 at 8:26 am #2402797MD Tohidul
No error is showing, just the code is not working. Check the screenshot:
November 5, 2022 at 11:23 am #2402955LeoStaffCustomer SupportCan you make sure the code is indeed activated?
Have you tried clearing the plugin first?
Let me know ๐
November 5, 2022 at 9:49 pm #2403227MD TohidulI don’t know what do you mean by clearing the plugin first. Can you please explain it for me?
Also, for your better understanding I have given the details in the private information.
November 5, 2022 at 9:53 pm #2403228MD TohidulI always clear the cache after something on my site. And, I am using Ezoic cache options for that! check the screenshot below
November 5, 2022 at 9:57 pm #2403230MD TohidulI request you to give the proper solution to solve this issue as soon as possible. I have given all my information in the above. If you need anything else, I can provide you. Make sure that my problem is solved !
November 6, 2022 at 4:48 am #2403432DavidStaffCustomer SupportPlease refrain from making unreasonable demands, we are trying to assist you with adding custom code to your site. This is not our issue, and we are only trying to assist.
Can you first provide a link to a page on your website where we can see the date that you want to change?
November 8, 2022 at 11:09 am #2406823MD TohidulI am not using any caching plugin. Also, there is no error message showing.
The fact is after adding the code on snippets plugins, it’s not working.
I want to show my post last updated date on article, I tried with the code snippet but its not working.
HELP!!!
November 8, 2022 at 3:25 pm #2407130YingStaffCustomer Supporthttps://prnt.sc/aMCUiOOU4l3a this is not the GP function, and the function doesn’t look right.
Can you use this snippet instead?
https://generatepress.com/forums/topic/unable-to-communicate-back-with-site-to-check-for-fatal-errors/#post-2396443add_filter( 'generate_post_date_output', function( $output, $time_string ) { $time_string = '<time class="entry-date published" datetime="%1$s" itemprop="datePublished">Published on: %2$s</time>'; if ( get_the_date() !== get_the_modified_date() ) { $time_string = '<time class="entry-date updated-date" datetime="%3$s" itemprop="dateModified">Last Updated on: %4$s</time>'; } $time_string = sprintf( $time_string, esc_attr( get_the_date( "c" ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( "c" ) ), esc_html( get_the_modified_date() ) ); return sprintf( '<span class="posted-on">%s</span> ', $time_string ); }, 10, 2 );
And can you link us to a post that has an updated date?
November 9, 2022 at 11:01 am #2408735MD TohidulThanks Finally updated date is showing, GOD BLESS YOU ~
November 9, 2022 at 1:34 pm #2408856YingStaffCustomer SupportGlad to hear that ๐
-
AuthorPosts
- You must be logged in to reply to this topic.