I have a custom post_type, which is called news, I would like to bring these posts in the calls. #2730
-
In the WP that I'm adding the plugin, post_type = 'post' is no longer used, only post_type = 'news' or post_type = 'article_columnist'. However, I just want to pull the news through the API |
Beta Was this translation helpful? Give feedback.
Answered by
justlevine
Feb 17, 2023
Replies: 1 comment 1 reply
-
Hey @bortoli99 👋 To hide your Same with You can learn more in this docs article |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bortoli99
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @bortoli99 👋
To hide your
post
post type, you can filter the post type args and setshow_in_graphql
tofalse
.Same with
news
, andarticle_columnist
, except instead of filtering, you'd addshow_in_graphql
to the$args
in yourregister_post_type()
call.You can learn more in this docs article