Home › Forums › Backend Issues (wp-admin) › Using Conditional Logic for a Post Category › Reply To: Using Conditional Logic for a Post Category
Sure thing!
This image shows the field that is set with the condition to only show when a field above it, which is a radio button is set to yes. By default the radio button is set to no.
https://www.dropbox.com/s/bim72gqmax335q9/acf1.jpg
This image shows that the filed should only be showing on posts that are part of the knowledge category.
https://www.dropbox.com/s/h5p4lxpp9h5l50k/acf2.jpg
This images shows the add new page when the knowledge category is selected. You can see that the field that is supposed to be hidden “Premium Content Downloads” is showing when no is selected.
https://www.dropbox.com/s/0xqtdfudcga6a9b/acf3.jpg
Just to note, when I go to add a new post, and select the knowledge category, then change no to yes then back to no, the field hides. It’s only on the initial page load and selection of the category that the fields that are supposed to hide don’t. I hope this makes sense, if not let me know. Thanks!
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.