Home › Forums › Front-end Issues › Conditional display according to radio button › Reply To: Conditional display according to radio button
Sorry, I found myself what was silly :-S It’s often while asking something that you found the solution, which is obvioulsly :
<?php if( get_field('status') == 'no'): ?>
<div class="side-button">
<a href="<?php the_field('the_link', get_the_ID()) ?>" target="_blank">Click the link</a>
</div>
<?php elseif ( get_field('status') == 'yes' ): ?>
<div class="side-button-dark">
Special message
</div>
<?php endif; ?>
Sorry, but I don’t find where to delete thread…
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.