                    <?php
                        $field = get_field_object('type');
                        $value = $field['value'];
                    ?>
                        
                        <?php 
                        $args = array(
                        'post_type' => 'voice', //投稿タイプ
                        'posts_per_page' => 3,
                        'meta_query' => array(
                            array(
                            'key'=>'type',
                            'value'=> $value, //設定している値を入れてください
                            'compare' => 'IN'
                            )
                        )
                        );

                       
                    
                        $domestic_post = get_posts($args);
                        if($domestic_post) : foreach($domestic_post as $post) : setup_postdata( $post ); ?>
                        
                        <div class="voice-content">
                        <h3 class="menu-name"><?php the_field('text'); ?></h3>
                        <div class="voice-container">
                            <div class="voice-container-left">
                            <?php
                            $images = get_field('picture');
                            if($images):
                            $src = wp_get_attachment_image_src($images, 'full');
    
                            echo '<img src="'.$src[0].'">';
                            endif;
                            ?>
                            </div>
                            <div class="voice-container-right">
                                <h4><?php the_field('information'); ?></h4><br>
                                <?php the_field('content'); ?>
                            </div>
                        </div>
                    </div>
                        <?php endforeach; ?>
                        <?php else : //記事が存在しない場合 ?>
                        <li class="top_noentry">表示する記事がありません。</li>
                        <?php endif;
                        wp_reset_postdata(); ?>