Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content types returns null #163

Open
macphersonj opened this issue Jun 29, 2023 · 4 comments
Open

Content types returns null #163

macphersonj opened this issue Jun 29, 2023 · 4 comments

Comments

@macphersonj
Copy link

macphersonj commented Jun 29, 2023

When querying contentTypes on archive pages I receive

contentTypes: post: null

The query as per docs:

contentTypes {
            post {
                title
                schemaType
                metaRobotsNoindex
                metaDesc
                schema {
                    raw
                }

                archive {
                    fullHead
                    archiveLink
                    breadcrumbTitle
                    hasArchive
                    metaDesc
                    metaRobotsNoindex
                    title
                }
            }
            }
            

Running latest versions of both WPGraphql and this plugin

@macphersonj
Copy link
Author

Perhaps the types have changed in the latest version?

@ashhitch
Copy link
Owner

@macphersonj can you test with v4.22.5

@macphersonj
Copy link
Author

Screenshot 2023-07-03 at 4 32 03 pm

Thanks @ashhitch, it gets me further but no Schema is present. Perhaps thats due to settings

@ashhitch
Copy link
Owner

ashhitch commented Jul 3, 2023

It seems Yoast have introduced and indexable flag. Just trying to figure what it does as it stops the data returning

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

No branches or pull requests

2 participants