私はOwl Carouselを使用して、カルーセルのロゴギャラリーを作成しています。私は高度なカスタムフィールドのリピータ機能を使って、ロゴのすべてのURLを取得しています。ここではギャラリーのためのマークアップだ:高度なカスタムフィールドのリピートを使用してギャラリーを作成する
<div id="clients">
<?php
$clients = get_field('client_carousel');
$client_logo = get_field('client_logo');
if($clients) {
?>
<section>
<div id="owl-clients" class="owl-theme owl-carousel">
<?php foreach($clients as $client_logo): ?>
<div class="item">
<img class="featurette-image img-responsive center-block" src="<?php echo $client_logo['url']; ?>" alt="<?php echo $client_logo['alt']; ?>"></div>
<?php endforeach; ?>
</div>
</section>
<?php } ?>
</div><!--end clients-->
リピーターフィールド名がclient_carousel
あり、それ内のフィールドのフィールド名がclient_logo
です。
私は作業デモhereを持っています。それはグループ内の7つのロゴを認識しますが、私が得ることができないのはimg srcのURLだけです。