WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Advanced Custom Fields] Repeat fields Two columns

[Resolved] [Plugin: Advanced Custom Fields] Repeat fields Two columns

  • I am using repeat field. I want to show an image in the left and text in the right, the same how look this example.

    Repeater Field

    The preview of the website all the images are align on the top and don’t with the block of text.

    What is the right code for this?

    I tried with div but doesn’t work

    <?php

    // or the_repeater_field + the_sub_field
    if(get_field(‘services’)): ?>
    <?php while(the_repeater_field(‘services’) ): ?>

    <div id=”services”>
    <img src=”<?php the_sub_field(‘services_images’); ?>” class=”image-left” />
    <div id=”services-right”><?php the_sub_field(‘services_content’); ?></div>
    </div>

    <?php endwhile; ?>

    <?php endif; ?>

    http://wordpress.org/extend/plugins/advanced-custom-fields/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author elliotcondon
    Member

    @elliotcondon

    This is all up to the CSS, your PHP code is fine, just edit your CSS to float the image to the left, etc

    Hi Elliot, Thank you so much. I did it with css and before your answer my question and working fine, just I thought that maybe exist another way. 🙂

    Thank u again, sweet.
    ufita

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Advanced Custom Fields] Repeat fields Two columns’ is closed to new replies.