Support

Account

Home Forums Front-end Issues Taxonomy field – display posts with special tag Reply To: Taxonomy field – display posts with special tag

  • this fix my issue

    `<?php
    $tagValue = get_field(‘related_places_by_tag’);
    $args=array(
    ‘tag_id’ => $tagValue,
    ‘posts_per_page’=>6 // Number of related posts to display
    );

    $my_query = new wp_query( $args );
    while( $my_query->have_posts() ) {
    $my_query->the_post();
    ?>
    <div>
    “>
    <?php the_title(); ?>

    </div>
    <?php }
    wp_reset_query();
    ?>’