Change schema type from WebPage to Article
-
I use a custom post for technical articles. They have all the needed data to qualify as a schema type “article.”
Yoast is defaulting to WebPage, but I want it as Article. Blog posts are output as Article, and Pages are output as WebPage. It seems custom posts are output as WebPage as well.
There must be a simple filter for me to make Yoast output my custom posts as Article. How?
There’s only this incomplete mention of wpseo_schema_article_post_type
wpseo_schema_article_post_type – allows changing for which post types we output the Article graph piece.
https://developer.yoast.com/features/schema/api/
How do you use this filter?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Change schema type from WebPage to Article’ is closed to new replies.