Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.77k stars 891 forks source link

Article schema on pages #17051

Closed wpsumo closed 2 years ago

wpsumo commented 3 years ago

@Djennez With the developer API how wouild you recommend just simply allowing article schema piece on pages? Without writing out the full schema piece?

It's a common use for some users and it should just me a simpele row to allow use \Yoast\WP\SEO\Generators\Schema\Article;on pages as well? And allow use to wrap that into a condition to listen to output it or not depending on a custom field etc.

rmens commented 3 years ago

This might be more of a question to ask the support team via the My Yoast portal. Or is development support provided via GitHub and is the My Yoast support more for user facing issues?

wpsumo commented 3 years ago

@rmens was more a development question as it's not clear in the dev API to do such a simple thing instead of customizing the whole piece graph. And ideeally allow us to have the dropdown to allow it on opage in the UI as well.

wpsumo commented 3 years ago

@Djennez Could we with the schema dev API easily enable Publisher to be person and author markup on pages instead of using organization? Without writing a new custom graph with all pieces? Rather, use what is already coded to use on webpage as well as publisher. How can I do that?

Would be ideal if we just could enable with a filter which would add person as publisher and add author markup instead of existing in webpages. Which is referring to organization.

https://developer.yoast.com/features/schema/api/#enable--disabling-graph-pieces-by-filter

wpsumo commented 3 years ago

@Djennez There should be a simple way to enforce and change to article markup on all pages via the dev API. Why can the dev team not send an example of such use case? As you lock us in and say WordPress don't have authors on pages. While they do. So the reason to not output author and person markup for pages is not valid, at least give a solution to it if you refuse to add it in the settings UI.

Kindly give us a solution, would be very much appreciated.

chieyang96 commented 2 years ago

@wpsumo did you find the answer regarding this issue already? As I try to use wpseo_schema_article_post_types for the default page, its not working. I saw the documentation stated that it is currently does not work for the page post type. They are fixing this.

Is there any alternative for this to work? Much thanks.

Djennez commented 2 years ago

Going to close this, as since 17.6 all posttypes supporting authors can now be set to be an Article. image