Home Forums General Issues Multiple Taxonomy Tag__and show only tag top?


Multiple Taxonomy Tag__and show only tag top?

  • Hello,

    I have add code to index show list post tag as

    $tagid = get_field('select_tag_item');
    $tagid_item = implode(', ', $tagid);
    $args = array(
    	'tag__and' => array($tagid_item),
    	'posts_per_page' => 5
    query_posts($args); if ( have_posts() ) { while ( have_posts() ) { the_post(); ?>
                	<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    <?php }} wp_reset_query(); ?>

    i have select tag_1 ( have 3 post) and tag_2 (have 2 post) but echo index only 3 post in tag_1.

    If i move tag_2 on top select echo index only 2 post in tag_2 don’t post in tag_1.

    Give me check any mistakes. Thanks

  • This reply has been marked as private.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.