Modified date not applied to Google search result.
-
Hi,
I was changed date option from Posted date to Modified date few month ago using Functions code.
/** * Display only last modified date in the post metadata. * * @param String $output Markup for the last modified date. * @return void */ function your_prefix_post_date( $output ) { $output = ''; $format = apply_filters( 'astra_post_date_format', '' ); $modified_date = esc_html( get_the_modified_date( $format ) ); $modified_on = sprintf( esc_html( '%s' ), $modified_date ); $output .= ''; $output .= ' ' . $modified_on . ''; $output .= ''; return $output; } add_filter( 'astra_post_date', 'your_prefix_post_date' );
But it is not applied to google search result. Search result still displied as Posted date.
Is it any way to change method from Posted date to Modified date instead that functions code?
Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Modified date not applied to Google search result.’ is closed to new replies.