Schema for posts has more arguments that are useful for filtering posts by category name or category id. I've registered multiple custom post types and they are missing those arguments?
How can I add/register more schema arguments with PHP for my custom post types in the WP Graphql? WP GraphQL docs don't cover this particular feature.
Any kind of advice/help will be great. Thanks in advance.
Please see the screenshot comparison for posts and custom post types.
Posts:
Custom Post Type:
Comments
I have this code where I can fetch related posts from the single taxonomy and single post type instead I want to fetch all the posts related to the parent post taxonomy.
For example, i am on the blog details page of a particular blog and it has the custom category "abc" now I would like to fetch all the posts which have the custom category "abc" from all the custom posts available in admin not just the one blog post.
Add Comment