Skip to main content
deleted 59 characters in body
Source Link

To display posts from either tag you need to use tag__intag__in instead of tag__andtag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );
$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

To display posts from either tag you need to use tag__in instead of tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );
$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

To display posts from either tag you need to use tag__in instead of tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

added 13 characters in body
Source Link
Krzysiek Dróżdż
  • 25.5k
  • 9
  • 53
  • 74

To display posts from either tag you need to use tag__intag__in instead of tag__and tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) ); $tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );
$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

To display posts from either tag you need to use tag__in instead of tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) ); $tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );

To display posts from either tag you need to use tag__in instead of tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );
$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );
Source Link

To display posts from either tag you need to use tag__in instead of tag__and . This will return posts from either tag id.

$tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) ); $tag_query = new WP_Query( array( 'tag__in' => '13, 27' ) );