Home Forums Backend Issues (wp-admin) Organize choices fields in radio button


Organize choices fields in radio button

  • Hello! I want when creating the page to have radio buttons with images like in the example, but I need many option choices (more than 20) – how can I structurize them in the slider or another way? I mean, that image_1 and image_2 must be showing like the slider or dropdown, but not a big listing.

    add_filter('acf/load_field/name=my_radio)button', 'my_acf_load_field');
    function my_acf_load_field( $field ) {
        $field['choices'] = array(
            'image_1' => '<img src=".../image_1.jpg" alt="image" />',
            'image_2' => '<img src=".../image_2.jpg" alt="image" />'
        return $field;
  • You will need to add custom css to the admin. Similar to adding custom JS

    what the custom CSS would be? I don’t really know. I might try setting the container to scroll and floating the choices in some way.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.