This is an old plugin, but I think you will get idea from this plugin
Similar thing is possible with this plugin, you will find more details in plugin description.
Alternatively you can use “pre_get_posts” action in your theme’s functions.php file to call only on category archive page using below code. Below code will add filter on the category.php page to fetch posts with tag ‘red’.
function tag_filter_category( $query ) {
if ( is_category() ) {
$query->set( 'tag', 'red' ); // to fetch posts with tag red (color)
}
}
add_action( 'pre_get_posts', 'tag_filter_category' );
Related Posts:
- Get rid of WordPress category, tag and author archives?
- How to add the category ID to admin page
- How to create a widgetized sidebar for every category dynamically?
- Only show category to certain user levels without plugin
- List Categories of the Parent Category of the Current Category
- exclude category from WordPress Form function
- wp_list_categories, Add class to all list items with children
- Remove “Parent” Selection When Adding/Editing Categories?
- Check is category parent or not from its ID
- How to show in search results posts with a particular tag in a particular category?
- How can I get an tag to wrap each ancestor that gets outputted in this condition?
- If category is in parent category?
- If in category to be inside of a function
- Rename Default Category (Uncategorized) Via a Function
- Check child/parent categories if exists
- Getting URL of archive (category) page
- How to show only one category in breadcrumb navigation
- Query posts from category based on a filter most favorited
- Random Featured Image Based on Category
- add slug beside name in Admin Category Checklists
- Change div background acording to the selected category
- How to use wp_list_categories with plugin category?
- Redirect depending on category chosen
- How to add icon over specific thumb
- How to load several hierarchical categories from functions.php
- Change Default Content when Creating a Post based on Previous Category Choice
- How to add a custom thumbnail size for a specific category?
- create function to call category name and slug
- Different size video display for category page (smaller) & detail page (larger)
- Code to display category-specific single.php is overriding normal single.php, too
- Loop Through Categories in Custom Field
- Function to list posts from current post’s category fails in WP 3.8
- Show only one category in main query, issues on tag page
- Show parent-child relationship for categories in the wordpress admin
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- How to get this only in small letters (lowercase)? [closed]
- How to totally get rid of Category in my blog?
- Is there a function to cause empty categories not to show in menus?
- Category Specific Archive
- Is there a plugin that will completely remove the category system?
- How to get the number of child categories a specific parent category has?
- Removing category base form links messes up the parent-child behavior
- How to get only the last child of category slug?
- How to list only child categories?
- How do you remove display of WooCommerce product category on single product page?
- Show recent posts in menu?
- Cannot add / edit categories to a post anymore
- List archived posts by subcategory
- How to check category of of custom post type or not
- Set a them for all subset of category
- How to query post like normal search would do. within search.php page
- WordPress Get Posts from each category equally
- Unwanted Duplicate Product Categories in WooCommerce
- WP admin broken. Not saving catgories or adding categories to menu
- Exclude current post from loop
- Removing Uncategorized on post save if other category present?
- WordPress Categories in data-groups
- Not showing list if there aren’t any categories to display
- How to list all categories and their IDs using SQL query?
- How to order get_categories() in the same order as the menu?
- Difference between wp_list_categories and get_categories
- Show different menu on each woocommerce category page
- How to let the user create a selection of categories via the backend
- Have posts that belong to multiple categories, exclude some categories from homepage
- Display subcategories selectbox on each category page
- Retrieve post tags from from main wp_query
- Listing Post Categories on Home Page
- Get posts in a subcategory of a chosen parent
- How can I only display links from a child category
- Problem with Custom Post Type Categories
- Category Template – Show Last Entry as Featured
- can I ‘combine’ categories as a menu item?
- How to divide Subcategories into pages of parent category wordpress
- List taxonomy terms assigned to a post in hierarchical view
- Hide category name but show posts
- Count how many posts have a specified tag AND category
- Show the parent taxonomy by creating shortcode in woocommerce?
- Post List by category and under custom taxonomy
- Balance Tags to the_content Words Length
- How to create template for children category?
- Categories and Tags Conflict after Woocommerce Installation
- how to display categories for a specific post?
- the_content() not showing full posts in category template
- Show parent category if there is no subcategory
- Add category links?
- Display a category name automatically using code in the functions.php file
- Removing categories, Comments etc from posts?
- Add html word before category
- How to get tags and categories?
- Problem importing categories and sub-categories
- how to ask if in two categorys inside if
- How to show video from wp option value?
- Changing Woocommerce categories programatically
- Add an Exclusive or featured tag line to article titles
- How to list out post category name and description in page
- Print child category slug nicename
- Order Categories by Character Count