嗨,大家好,我正在使用ACF pro與Repeater插件和自定義Post類型UI插件。ACF不顯示子字段
我創建的自交型「課程庫」,並有我添加使用中繼器
第一場主標題字段名main_heading「這是目前顯示」
二是「幾場和子場你的主題標題1" 字段名‘your_title_field_1’,並使用轉發器具有字段標籤‘清單’,並和字段名‘list_items’這是不顯示任何
這裏是我的代碼
<div class="container">
<div class="row featured-boxes">
<?php $loop = new WP_Query(array('post_type' => 'course_library', 'orderby' => 'post_id', 'order' => 'ASC')); ?>
<?php while ($loop->have_posts()) : $loop->the_post(); ?>
<div class="col-md-3">
<div style="height: 2572px;" class="featured-box">
<h4><?php echo the_field('main_heading'); ?></h4>
<ul class="menu" id="java_technologies">
<li><a target="_top" href="/"><?php echo the_sub_field('list_items'); ?></a></li>
</ul>
</div>
</div>
<?php endwhile; ?>
請幫助解決這個問題,我也可以顯示我的列表項目。
不工作先生 –
請嘗試更新的代碼。 –
真棒謝謝你。 –