Advanced Image(s) to slider

Support Meta Box AIO Advanced Image(s) to sliderResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33525
    Brian HruskaBrian Hruska
    Participant

    Anywhere I can find code to create a slider out of multiple images that get put into the Advanced Images metabox field?

    #33535
    Long NguyenLong Nguyen
    Moderator

    Hi Brian,

    You can use the Slick JS to create a slider, please read more on the documentation https://docs.metabox.io/fields/image-advanced/#template-usage

    And this to output the field image_advanced https://docs.metabox.io/fields/image-advanced/#template-usage

    <div class="your-class">
    <?php 
        $images = rwmb_meta( 'info', array( 'size' => 'thumbnail' ) );
        foreach ( $images as $image ) {
            echo '<a href="', $image['full_url'], '"><img src="', $image['url'], '"></a>';
        } 
    ?>
    </div>
    #33543
    Brian HruskaBrian Hruska
    Participant

    Both links are the same. Did you mean to include a different link for the slick.js example?

    #33558
    Long NguyenLong Nguyen
    Moderator

    Sorry, here is the documentation of Slick JS https://kenwheeler.github.io/slick/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.