How to remove the date from search engine and also how to improve the meta title

Hi,

Could you please let us know if you’re using any SEO plugin or similar tool?

You can also use the following snippet to remove the creation date that HivePress outputs in the HTML

add_filter(
	'hivepress/v1/templates/listing_view_page',
	function( $template ) {
		hivepress()->template->fetch_block( $template, 'listing_created_date' );

		return $template;
	},
	1000
);

If you’re seeing the datePublished and dateModified values in HTML, these are part of the structured data (Schema) added by the Rank Math plugin. In this case, the dates are not coming from HivePress, but from the schema markup generated by Rank Math.

If you’re using SEO tools, there is usually an option to configure or override meta titles, descriptions, and other structured data settings directly within the plugin.

Yes, I am using Rank Maths plugin

Thanks for the details.

Please try the snippet above to remove the creation date output by HivePress.

If the date is still visible after reindexing, I would recommend reaching out to the Rank Math support team. In that case, the date is likely coming from the datePublished and dateModified values.

They should be able to advise you on the best way to remove or adjust these values if needed.

Ok Thank you.

The code didnt worked.

Hi,

Could you please clarify what you mean when you say the code didn’t work? Do you mean that the publish date inserted by HivePress is still visible in the code, or is there something else happening?

Also, have you had a chance to contact RankMath support regarding their datePublished and dateModified values? They may be able to provide more specific guidance on their end.