wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

[Enhancement] Provide a setting to remove the datepublished date published schema

Open Pcosta88 opened this issue 7 years ago • 12 comments

Is your feature request related to a problem? Please describe.

Google only shows published dates in its search result pages and does not show updated dates. This can lower the CTR and lead to reduced traffic.

Users can create a filter to remove this using this guide here https://developer.yoast.com/schema-documentation/api/ but not all users are technically skilled to do so.

Describe the solution you'd like

Provide a setting to remove the datepublished date published schema

why you think the feature request is something we should consider for the Yoast SEO plugins?

Improve Technical SEO and UX

NOTES

Google uses the datepublished schema Yoast outputs as one signal to determine if it should show the date. This guide explains more: https://webmasters.googleblog.com/2019/03/help-google-search-know-best-date-for.html.

Pcosta88 avatar Apr 17 '19 14:04 Pcosta88

Please inform the customer of conversation # 495523 when this conversation has been closed.

Pcosta88 avatar Apr 17 '19 14:04 Pcosta88

From user: Schema.press and other schema plugins are providing this feature

mayada-ibrahim avatar Apr 17 '19 16:04 mayada-ibrahim

@mayada-ibrahim can you tell me why you're not just updating the publish date in your WP site? Doing this would mean the date gets shown differently in many spots...

jdevalk avatar Apr 19 '19 14:04 jdevalk

@jdevalk I am surprised you do not seem to grasp the point or maybe I missed something. If you publish a post say January 2017 which you update every 6 months with the latest information. Even if your schema is set up to reference the modified date Yoast SEO stubbornly shows the original publish date. Changing that is not straightforward or clear. The published date your plugin shows to the public in the SERPS is misleading and very detrimental from a CTR viewpoint. Who wants to click on an article 2 years old when you can see much newer ones in the SERPS.

So your article which is possibly the latest and the best never gets clicked on.

You can turn the date off in Yoast but that is only half an answer. For a paid plugin this is a glaring and obvious faux pas.

slipperx avatar Apr 29 '19 13:04 slipperx

@slipperx help me out here, since WordPress shows that date in multiple places, why not just change the actual publish date in WordPress itself? Trying to understand this reasoning.

jdevalk avatar May 05 '19 10:05 jdevalk

@jdevalk Indeed you can change the publish date of updated content but then you are effectively saying that piece of content was created on the date it was modified rather than the date it was actually published in its first form. I am not sure Google would be very happy at that slightly misleading info but I do not know for sure. The better solution seems to me to just publish the modified date and leave the published date unstated for the purpose of honesty.

slipperx avatar May 13 '19 10:05 slipperx

I created the following snippet to remove the datePublished and dateModified from Yoast's 'article' and 'webpage' Schema markup:

add_filter( 'wpseo_schema_article', 'yoast_modify_schema_graph_pieces' );
add_filter( 'wpseo_schema_webpage', 'yoast_modify_schema_graph_pieces' );
function yoast_modify_schema_graph_pieces( $data ) { 

	unset($data['datePublished']);
	unset($data['dateModified']);

	return $data;
}

MarkPraschan avatar May 21 '19 14:05 MarkPraschan

This new way of placing all in a JSON without any control is bad. I only use the breadcrumbs but it adds a bunch of other schema i don't want. I can either disable the feature which kills breadcrumbs or enable it and get all the unwanted items. Why can't we have settings?

EDIT: Forced to go back to pre-version 11.- When the plugin controls the site and not the admin is never a good sign.

RetroGameTalk avatar Jun 17 '19 18:06 RetroGameTalk

Hi @Salamander3, you can use the information on our knowledgebase to create, or have someone create, some code to alter the schema pieces to your liking. This thread remains open as a feature request for a visual interface to these settings.

Djennez avatar Jun 20 '19 08:06 Djennez

Thanks for feature request.

RetroGameTalk avatar Jun 20 '19 08:06 RetroGameTalk

How to remove New Person capabilities in Yoast SEO Premium?

devhelper avatar Jun 26 '21 13:06 devhelper

Just want to bump this request up in the priority queue.

I too want a simple way to opt out of displaying the datePublished schema. For now, I'll have to do it via a code snippet, but it would be much easier (and more helpful) to have it as a plugin option.

I think @jdevalk approach of changing the published date is fundamentally misleading. If you tell Google the date it was last updated only, then this is both true, and not misleading.

johnr365 avatar Nov 09 '21 13:11 johnr365