Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

archiveSeo on custom taxonomie archives. #884

Open
koraysels opened this issue Jan 20, 2022 · 4 comments
Open

archiveSeo on custom taxonomie archives. #884

koraysels opened this issue Jan 20, 2022 · 4 comments

Comments

@koraysels
Copy link

Hi,

when I look in GraphiQL explorer to get an archive of a custom taxonomy for a custom post type, I cannot read the field 'archiveSeo' is that supposed to be enabled in some way for it to work? or...

@koraysels
Copy link
Author

image

@ravewebdev
Copy link
Contributor

@koraysels archiveSeo is added via wds-headless-seo (which builds on Yoast SEO): https://github.com/WebDevStudios/wds-headless-seo/blob/main/inc/wp-graphql.php. That field should be added automatically to all post types with has_archive set to true.

@koraysels
Copy link
Author

koraysels commented Jan 21, 2022 via email

@ravewebdev
Copy link
Contributor

@koraysels in our projects, I believe we're using the default seo field provided by Yoast SEO for built-in taxonomy archives. I don't have an example to reference for SEO in a custom taxonomy archive, but I would recommend either trying the seo field provided by Yoast SEO or extending our custom archiveSeo handling to apply to your custom taxonomy, depending on what data you need.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants