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′ ) );
Related Posts:
- How to search for categories and/or tags?
- Sticky posts on home page, search, tag and archives without plugin
- Search by word, category, tag, author
- Help with multiple dropdown tags search
- Search Posts / Pages with multiple options?
- Site search needs to find posts for category topic AND Tag or keyword thats not in the post
- Show Posts via cat+cat in URL that are in both Categories doesn’t work
- Automatically adding tags and categories into Post Excerpt for searching
- Return all Tags and Categories in Separate List
- Search by tag, category and author without plugin
- 404 error when i try to search by category or by tag
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Use tag interface for hierarchical taxonomy?
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- Filter categories using tags
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Create subdomains for tags and categories
- Is it possible to disable certain user roles from creating tags?
- Custom Query to search through categories
- How to totally get rid of Category in my blog?
- Root level category, tag, author and archive pages to work
- Showing all the posts in one page?
- How to show empty category in admin menus search
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- How to select product category while adding new product in woocommerce? [closed]
- How do I get the total number of categories in a list of search results?
- Is it possible to put tags and category information in the post as text?
- Script to duplicate categories as tags
- Filtering search results
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- display most popular tags of category?
- Can paginate_links() be customized for a specific category or tag?
- Any way to assign Post Categories and Tags to Links?
- Multiple Category Search
- get_the_category and echo out link to child-most/deepest category
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- How can I duplicate categories and tags?
- How to run select query of post with category and tags for API?
- Changing permalink from /postname/ to category/postname/
- How to query post like normal search would do. within search.php page
- WordPress search only showing a few posts
- Select posts by name and category per REST API
- How to display categories which contains particular tag?
- “Categories” for six authors [closed]
- How do I toggle pagination on/off in search results and category listings via a link?
- How to “group” (categorize) the Pages together?
- Is There a Difference Between Taxonomies and Categories?
- Custom SQL Query: Get all posts with category id and a concated list of tags on each post
- Related Tags not in category
- scaleability of tags
- Get URL Category Name By ID
- How do I add a tag slug to a category URL to filter posts?
- How can I display tags as categories?
- Show the amount of posts in a tag in a specific category has
- Echo text using is_tag
- Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)
- Group search results by category
- Conditional category & tag statement
- Include either name or slug in the include parameter using wp_list_categories?
- List all posts of certain category which share some tags
- Search form options group categories
- How can I filter posts by tag on the fly
- Retrieve post tags from from main wp_query
- Advanced permalinks structure
- Custom menu with categories and tags
- display specific category when website loads
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- How to filter tags by category?
- Count how many posts have a specified tag AND category
- How to prevent tag “iframe” from being deleted from the heading description of rubric?
- Automatically create tags and merge with categories
- When creating category, it creates automatically tag, or, when creating tag, it creates automatically category in same name
- Using heirarchial tags or Custom taxonomies
- Balance Tags to the_content Words Length
- custom browse by
- Issue with WordPress category search
- How to echo Tags and Categories as plain text
- Categories and Tags Conflict after Woocommerce Installation
- How can I add metaboxs to Admin Bar?
- get_terms sort order with child categories of varying depth
- Split posts into 2 separate streams
- Exclude posts with certain tags in category archive
- Getting Post Tags From Certain Categories
- Make related posts display first in search result
- How to remove specific categories from tag archives?
- Page Type with Category Link
- A simple question regarding tags and categories
- How can I allow people to ‘subscribe’ to categories?
- How to add an empty entry to masonry?
- Own Custom Tags/Category page ( posts)
- Loops in category description
- Several loop in search result
- Tracking multiple tags or categories
- How to load jquery tag-it plugin into admin?
- Modify functions.php to add a term ‘uses-theme’ set to theme name on post save
- Display category tree of a post in search results
- Moving Blog and Changing URL
- Remove “All categories” from searchbar dropdown