Php 同一页面上的ACF多中继器字段不工作

Php 同一页面上的ACF多中继器字段不工作,php,wordpress,advanced-custom-fields,acfpro,Php,Wordpress,Advanced Custom Fields,Acfpro,这是一个很奇怪的问题 我在制作一个详细页面模板的过程中,需要在同一页面上显示两个Repeater字段。我在不同的页面上做了多次,在一个页面上有3个repeater字段,它们显示得很好 有两个块detail\u other&detail\u information DO=详细信息\其他 DI=详细信息 这需要一些解释 如果我将DI置于DO之上,DIn将正确显示,并且不会渲染,但是,如果我以相反的方式执行,则它们都不会渲染 如果我将DI放在DO上面,并直接在下面复制DI标记,则DI和DO都会呈现 我

这是一个很奇怪的问题

我在制作一个详细页面模板的过程中,需要在同一页面上显示两个Repeater字段。我在不同的页面上做了多次,在一个页面上有3个repeater字段,它们显示得很好

有两个块
detail\u other&detail\u information

DO=详细信息\其他 DI=详细信息

这需要一些解释

如果我将DI置于DO之上,DIn将正确显示,并且不会渲染,但是,如果我以相反的方式执行,则它们都不会渲染

如果我将DI放在DO上面,并直接在下面复制DI标记,则DI和DO都会呈现

我确信有语法错误,但我已经检查了多次,但没有发现任何错误

代码如下:

<div class="detail__other">
    <div class="detail--contain">
        <div class="detail__heading detail__heading--black">Other Products</div>
        <?php if(have_rows('other_products')) : ?>
            <ul class="detail__other-products">
                <?php while( have_rows('other_products') ): the_row(); ?>
                    <li class="detail__others-products-item">
                        <?php $post_object = get_sub_field('products'); ?>
                        <?php if( $post_object ): ?>
                            <?php $post = $post_object; setup_postdata( $post ); ?>
                            <a href="<?php the_permalink(); ?>"><img src="<?php the_post_thumbnail_url('featured-small'); ?>" alt="<?php the_title(); ?>" /></a>
                            <?php the_title(); ?>
                            <?php wp_reset_postdata(); ?>
                        <?php endif; ?>
                    </li>
                <?php endwhile; reset_rows(); ?>
            </ul>
        <?php endif; ?>
    </div>
</div>

<?php if(have_rows('technical_information')) : ?>
    <div class="detail__information">
        <div class="detail--contain">
            <div class="detail__content">
                <div class="detail__heading">Technical Information</div>
                <table class="detail__table">
                    <thead>
                    <tr>
                        <th>Material</th>
                        <th>Grades</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php while( have_rows('technical_information') ): the_row();
                        // vars
                        $material = get_sub_field('material');
                        $grades = get_sub_field('grades');
                        ?>
                        <tr>
                            <td><?=$material;?></td>
                            <td><?=$grades;?></td>
                        </tr>

                    <?php endwhile; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php endif; ?>

其他产品
技术资料 材料 分数
尝试删除
重置行()我有,这是为了尝试修复问题而添加的