Home Forums Add-ons Gallery Field Flexslider Insert from URL Reply To: Flexslider Insert from URL

  • For anyone wanting to loop images from another source using Flexslider.

    I created a ‘text area’ field type and split the urls with a pipe (|).||

    <div id="slider" class="flexslider">
        <ul class="slides">
    		$string = get_field( 'slider' );
    		$split = explode ( '|', $string );
    		$split = array_reverse($split);
    		foreach($split as $img){
    		echo "<li><img src='{$img}' /></li>";

    Remove $split = array_reverse($split); for normal order.