Hi,
You set the schema by going to SEO-Search Appearance-Homepage and entering in the information in the Knowledge Graph section. Yoast then automatically determines what to output on the pages via ld+json.
If Yoast is not working as expected on your site, can you provide some URLs? We can take a closer look and confirm if Yoast is or is not working on them.
If you want to disable it on a specific CPT you can. You would need to develop on this filter here https://developer.yoast.com/schema-documentation/api/#disable-schema and make it apply to the specific CPT.
However, we can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.
Thread Starter
Rookie
(@alriksson)
Many thanks for the answer. But I never see article markup for articles and pages.
What triggers the article markup for pages? or products like: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fyoast.com%2Fwordpress%2Fplugins%2Fseo%2F
As I understand this it should be generated automatically? Pages is no custom cpt so no need to use wpseo_schema_article_post_type
-
This reply was modified 7 years ago by
Rookie.
Hi,
Yoast outputs the markup/schema automatically. The only thing you need to do is go to SEO-Search Appearance-Homepage and enter in the information in the Knowledge Graph section.
If you are not seeing the right schema, can you please provide a URL that highlights the issue? We’d be happy to confirm if Yoast is or is not working on it.
-
This reply was modified 7 years ago by
Pcosta88.
Thread Starter
Rookie
(@alriksson)
That is done. But I thought you added article markup? I only see webpage.
Hi,
Yoast is expected to add markup. Webpage may be the markup we are adding as per our schema documentation here https://developer.yoast.com/schema-documentation/yoast-seo/#website.
We are not sure. We’d be happy to verify Yoast is working as expected. Can you provide a URL so we may?
Thread Starter
Rookie
(@alriksson)
If I can send the URL privately thanks. But it looks like you do only add the article to posts? and webpage to pages?
Hi,
While we are unable to accept URLs privately, we can confirm we output Webpage on Pages and Article + Webpage on Posts. You can see this specific schema here: https://developer.yoast.com/schema-documentation/yoast-seo/#per-page-output.
This thread has been marked as resolved due to lack of activity by original poster.
If you are not the original poster but have a similar issue, please open a new request.
Thread Starter
Rookie
(@alriksson)
@pcosta88 I’m unable to accept URLs publicly. Ok, why do you not out article on pages? I think this is wrong not letting the user choose. On posts, I would rather tag them as blogpost than an article.
I think you should let me as a user control if I want article, blogpost or any other in each cpt’s.