• Hi,

    Congratulations for you plugin. That’s amazing.
    Can you help me?
    My new job require php from me, but I don’t have many skills about that.

    I’m trying to render the repeated content.

    <?php query_posts('cat=3'); ?>
    		<?php if (have_posts()): while (have_posts()) : the_post(); ?>
    
    		<section id="experiencia-internacional">
    			<div class="slide-experience">
    
    				<!-- Slide -->
    				<ul class="slide-with-thumbs">
    
    					<?php foreach( get_uf_repeater( 'slider_big' )as $slider_big ): extract( $slider_big ) ?>
    					<li>
    						<figure>
    							<img
    								src="<?php echo $slider_big_image ?>"
    								alt="<?php  echo $slider_big_title ?>"
    								role="img" />
    							<figcaption class="figcaption-description">
    								<span class="figcaption-title">
    									<?php echo $slider_big_title ?>
    								</span>
    								<?php echo $slider_big_description ?>
    							</figcaption>
    						</figure>
    					</li>
    					<?php endforeach; ?>
    
    				</ul>
    			</div>
    		</section>
    		<!-- END of EXPERIENCIA INTERNACIONAL -->
    		<?php endwhile; else: ?>
    		<?php endif;?>

    But I have the output bellow:

    “Warning: Invalid argument supplied for foreach() in /home/mdo/public_html/web/rbl/novo-site/wp-content/themes/mdo/index.php on line 86”

    In an infinite loop.

    Can you help me?

    https://www.ads-software.com/plugins/ultimate-fields/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Radoslav Georgiev

    (@radogeorgiev)

    Hello Miika,

    the code seens to be right, so I guess that there is something else that is wrong

    Can you export the container with the repeater as an XML file and attach it here or send it to rageorgiev at gmail.com? This way I will be able to diagnose the issue correctly.

    Best regards,
    Rado

    Thread Starter _Miika

    (@_miika)

    I’ll send u an email! Thank you very much! =*

    Thread Starter _Miika

    (@_miika)

    Hello, I send you the email. Did you receive that? Thanks for your support. (mfabianad at gmail.com)

    Thread Starter _Miika

    (@_miika)

    What is these two parameters?

    <?php foreach( get_uf_repeater( 'slider_big' )as $HERE ): extract( $HERE ) ?>

    Thread Starter _Miika

    (@_miika)

    New Error:

    Invalid argument supplied for foreach() – /wp-content/plugins/ultimate-fields/classes/UF_Field_Repeater.php:676

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Repeater fields’ is closed to new replies.