amazing, exactly what i was looking for, thank you !
Yes my CPT has a taxonomy associated with it, i can use filter by myself when setting up the field
But i was wondering if the USER themselves could select a category to filter with ? By typing it inside the field for exemple
Unfortunately this is still causing internal server errors 🙁
Tried commenting out the foreach loop, still crashes
Even simply trying to add fields for get_permalink or get_category causes it to crash
It does not crash when i add string fields
$v -> ‘test’ works
Im using wordpress as rest api so im not sure how to get details about the error
Wp debug mode set to true but doesnt record any error logs 😐
Wow. It works!
I feel a little dumb haha
I truely wonder why it works for me when using key= or name= tho
With > 10 priority, i was able to simply use type=post_object and clean my code
Thank you 🙂
Also looking for this
Any solution?
Considering making my option page a CPT… not ideal
found a way by adding a custom hook inside ACF plugin to filter post object before it is returned
not super clean, but it works
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.