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;
}