Home › Forums › General Issues › Merging a Post Object and Taxonomy into a Select › Reply To: Merging a Post Object and Taxonomy into a Select
You could do something like this https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/ but your select value would have to have some why to know if the selection is a post of category.
For example you could use
value: p-$post_id
label: Post Title
AND
value: t-$term_id
label: Term Name
Then loop over the selected values to display, parse the value to figure out if it for a term or post and then do the appropriate thing for that object type.
This would cause a significant loss in performance.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.