Skip to content

I have a custom post_type, which is called news, I would like to bring these posts in the calls. #2730

Answered by justlevine
bortoli99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @bortoli99 👋

To hide your post post type, you can filter the post type args and set show_in_graphql to false.

Same with news, and article_columnist, except instead of filtering, you'd add show_in_graphql to the $args in your register_post_type() call.

You can learn more in this docs article

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bortoli99
Comment options

Answer selected by bortoli99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants