• 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.

    • This topic was modified 3 years, 1 month ago by cheonmu.
Viewing 1 replies (of 1 total)
  • Hi @cheonmu,

    Sorry for the delay.

    I think it depends on the Search Engine (Google) to decide what to display in the search result. However, resubmit/recrawl the site might help to update what appears on the search engine result.

    I hope it will help.

    Kind regards,
    Herman 🙂

    P.S. We recommend reaching out to us through our Support Portal for faster and quicker help and resolution as mentioned here.

Viewing 1 replies (of 1 total)
  • The topic ‘Modified date not applied to Google search result.’ is closed to new replies.