Home › Forums › General Issues › Hide Content with radio button › Reply To: Hide Content with radio button
Ok i think your suggestion should work.
1) This is visual composer: https://ibb.co/JBmv1DH as you can see i have layout grid 8967
2) If i go to edit that section: https://ibb.co/Rpqx5c4 in url i can see /post.php?post=8967&action=edit
3) In inspector i can see the tag layout_8967 as class: https://ibb.co/RT0cg4J
So the code should like this?
if (get_post_type() == 'layout_8967' && 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.