Archived topic
Not showing author meta tags on Pages
3 replies · Started by BHASKAR on February 27, 2023
Hello,
I am using the below code to show the last updated date on Wordpress pages. It used to work in the past, but does not work for some reason. I removed it in past and now want to put it back again. But, does not work. I am using Generapress Child Theme and using the latest Generatepress 3.2.4 version of Generatepress theme.
Please suggest.
/* for showing last updated date and other meta that is generated above on pages */
add_action( 'generate_after_entry_header', 'tu_page_meta' );
function tu_page_meta() {
if ( is_singular( 'page' ) ) : ?>
<div class="entry-meta">
<?php generate_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif;
}
Hi there,
that code should still work, do you have page caching ? (plugins or serverside) - if so try clearing that.
David,
Thanks! We had some issues on our side with files not getting updated on the hosting side. It works!
Glad to hear that