Home › Forums › General Issues › Radio Button isn't showing after saving › Reply To: Radio Button isn't showing after saving
I solved the issue. It was my mistake. Here is the solution:
<label>
<input type="radio" name="<?php echo esc_attr($field['name']); ?>" value="1" <?php checked( $field['value'], 1 ); ?> />
<img src="<?php echo get_template_directory_uri(); ?>/admin/layout-1.png">
</label>
<label>
<input type="radio" name="<?php echo esc_attr($field['name']); ?>" value="2" <?php checked( $field['value'], 2 ); ?> />
<img src="<?php echo get_template_directory_uri(); ?>/admin/layout-1.png">
</label>
<label>
<input type="radio" name="<?php echo esc_attr($field['name']); ?>" value="3" <?php checked( $field['value'], 3 ); ?> />
<img src="<?php echo get_template_directory_uri(); ?>/admin/layout-1.png">
</label>
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.