• Resolved sagar772

    (@sagar772)


    Hi,

    Is there any way to hide the date in AMP pages and SERP?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milind More

    (@milindmore22)

    The AMP plugin provides a way to filter out a schema property using amp_schemaorg_metadata filter.

    you can use the following snippet in your custom plugin or themes function.php to remove dates ( published and modified )

    add_filter( 'amp_schemaorg_metadata', function ( $metadata ) {
    	unset( $metadata['datePublished'] );
    	unset( $metadata['dateModified'] );
    	return $metadata;
    } );

    Please note that SEO plugin like Yoast SEO and themes can also add their version of the schema and can overwrite AMP schema.

    If you still have difficulties finding a solution please share more details, with your site health information using this form to investigate further.

    Plugin Support Milind More

    (@milindmore22)

    @sagar772 As we didn’t receive a response I will mark this as resolved. Feel free to open a new support topic if you continue to encounter issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide date in SERP in AMP Pages’ is closed to new replies.