Support

Account

Home Forums Add-ons Repeater Field A repeater in random order including select fields Reply To: A repeater in random order including select fields

  • Hi Nuro,

    The code didn’t work unfortunately, but I think you’ve already started thinking of alternatives…

    Yes the caption is just a text field. The entry is usually a single word.

    Colour type is indeed a select drop-down containing two entries at the moment… grey or white.

    I was just thinking myself if we could eliminate the “if” statement, by just using the field…

    I’ve just changed the original code to:

    <img src="<?php bloginfo('template_directory'); ?>/logo_<?php the_sub_field('logo_colour'); ?>.png">

    And all seems to work.

    I hope this makes it easier.