Home › Forums › Add-ons › Repeater Field › repeater – different styles › Reply To: repeater – different styles
theoretical it could both (front and back-end) could be solved by adding a radio button before the image & textfield with left and right. and then add a logical condition based on this field. add twice the text and image field with same names, once ordered image first once text first.
at php use value of radio button to show image at left or right
$my_image_position = get_sub_field('my_image_position');
if($my_image_position == "left"){the_sub_field('my_image'); the_sub_field('my_text');}
if($my_image_position == "right"){the_sub_field('my_text'); the_sub_field('my_image');}
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.