How to add custom post type in the where argument to fetch data? #2994
ankur-astra
started this conversation in
Advanced Custom Fields
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a post type called
LearnArticles
in wordpress and another post typeLearn Categories
. Now I have linked both of them and I can access theLearn Categories
data under theLearn Articles
. But when I am trying to fetch data of a particular category I am unable to find theLearn Categories
field in theWhere
attribute of theLearn Articles
. How can I populate theLearnCategory
field in thewhere
argument of theLearn Article
?Things I have tried:
Registering a new taxonomy and connecting it with the learn category field:
Beta Was this translation helpful? Give feedback.
All reactions