You’ll need to add support for the author when you create your custom post type.
Make sure that you add to your supports array so it’s similar to this:
"supports" => array( "title", "editor", "author" ),
This will allow your GraphiQL to have that data!
You MAY need to go back to each post and re-save them though as they don’t have any author data until you do!
Related Posts:
- Pagination not working with custom loop
- How to use a custom post type as front page?
- get attachments for all posts of particular post type
- Query custom post type by custom field
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Querying Posts by Taxonomy From Alternate Network Site
- Custom Search | Wrong output & question
- Get the most popular terms for a custom post type
- Query by 2 values of a repeater ACF field
- show posts only on homepage but using custom post type and taxonomy for query posts via url
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Include both default and Custom Post Type in query modified inside pre_get_posts
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Include different loop templates in search query
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Automatically adding meta data to posts or multiple query help
- Custom Post Type order by modified date and custom meta field issue
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Selecting New & Edit Page for Custom Post Types
- Ignore sticky posts if post is not in meta query
- Querying Term Posts in Loop
- Am unable to reset a query properly
- Custom post type redirected to homepage – how to debug
- Get next and previous 3 posts in a term in single post page
- Making certain categories of CPT not publicly queryable
- Meta query for custom post type ignored in main query
- Querying Two Custom Post Types with OR Not Working
- How do I move/order posts with a tag to the end?
- Specific query for custom post type
- Display post content with respect to its title?
- Prioritize posts in query by meta keys?
- WP_Query orderby and tax_query
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Different Ways to Query Custom Post Types?
- Query of custom post types only shows first post
- Query multiple taxonomies with pre get posts
- Query Custom Post Types with checkboxes
- show all custom posts types in home page
- List of child custom post types lists all custom post types
- Make (custom) post type accessible only by custom query
- Returning a custom content types with meta values
- Custom Query: If One Post Object Field Value Is The Same As Another
- Custom Post Type not showing in main loop
- Shortcode to return single custom post based on post taxonomy
- is_main_query() never called on WP 4.4
- Hide text if query has no posts
- How do I get the index for a custom post?
- Create query for both custom post type and category
- Filtering custom posts by custom fields (ACF) [closed]
- Function to limit number of custom post types on homepage – TwentyTen
- Custom taxonomy query showing more than 4 posts
- Query Custom Post by taxonomy multiple categories
- Custom Post type showing up in loop, regular posts are not showing up
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- How to divide Subcategories into pages of parent category wordpress
- Update query based on CPT / Post Type, show all sorted by date
- WP Query: If field X is empty, show posts based on field Y
- Check that a slug is present in the get_terms request
- Shortcode with loop stacks output
- Displaying all posts by category and showing content on click
- Creating a custom WP query for a Custom Post Type
- Custom post type order by post_title
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How do I query with multiple custom fields orderby in same column?
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Get posts of an specific term of a custom taxonomy
- Conditional posts in WP_query for search
- Display year value before a set of posts
- Help ordering custom query by Title, Ascending
- How to add parameters for custom post type
- Query Pulling the same post twice
- Is it possible to add query parameters on the archive page?
- meta query always fails even if data is correct
- How do I get a nested query to only display content that the main query outputed
- $post breaking container loop
- Pagination in custom loop for custom post type throwing 404 error
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Multiple Queries and Loops within CPT Archive
- Query Posts From Multiple Post Types
- Pagination not working with custom loop
- how to limit query_post to first page?
- Filter CPT based on meta box value using Flexible Posts widget?
- Pagination not working with custom loop
- Pagination not working with custom loop
- Post content stays the same but permalink changes ?
- Pagination not working with custom loop
- Retrieve post data via WPDB class
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- Show custom posts with a specific “custom TAXONOMY slug” on startpage
- Posts 2 Posts: query connected — orderby problem
- custom post-type query just returns two posts
- Order custom post type is beign ignored
- Filter Custom post type by another Custom post type
- How can I show a field ID in Elementor with Request Parameter