WordPress高级自定义字段从不同的帖子获取字段数据

So I am having an issue with the following code:

            <?php 

            $posts = get_field('story_character');

            if( $posts ): ?>
                <?php foreach( $posts as $post): // variable must be called $post (IMPORTANT) ?>
                    <?php setup_postdata($post); ?>
                    By <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                    <span><?php the_field('story_character'); ?></span>
                  <?php endforeach;wp_reset_postdata(); ?>
            <?php endif; ?>
            <?php 

            $posts = get_field('story_character');

            if( $posts ): ?>
                <?php foreach( $posts as $post): // variable must be called $post (IMPORTANT) ?>
                    <?php setup_postdata($post); ?>
                    of <a href="<?php the_permalink(); ?>"><?php the_field('char_tribe'); ?></a>
                    <span><?php the_field('story_character'); ?></span>
                  <?php endforeach; ?>
            <?php endif; ?>

Everything after the first query does not show up and I cannot figure out why...What am I missing?