Home › Forums › General Issues › Hide Content with radio button › Reply To: Hide Content with radio button
You need to check the post type of the post being displayed
This is just an example, untested code, it will probably need to be altered based on your needs. For example, I don’t even know if get_post_type() will work here
if (get_post_type() != 'slider-post-type' || get_field('vedi_autore') == 'si') {
Output Post Author element
}
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.