add_action( 'parse_query', 'wpse_60354_archive_category' );
function wpse_60354_archive_category( $wp_query )
{
if ( $wp_query->is_archive() )
$wp_query->set( 'cat', ID_OF_CATEGORY );
}
Just replace ID_OF_CATEGORY
with the ID of your category, obviously 😉
Related Posts:
- Displaying year once in category.php [duplicate]
- How to get category and archive title?
- Get rid of WordPress category, tag and author archives?
- Category archive by year with permalink support /category/YYYY
- get_categories for custom post type with a specific custom taxonomy attached
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- 404 Error On Category and Tags Pages
- Force WordPress to Show Pages Instead of Category
- Decreasing the Memory Consumption of a WordPress Site?
- What’s the URL for a category archive?
- Preventing index.php?category_name=something from redirecting
- Make all subcategories use the template of its category parent?
- Sort posts by tags in category pages
- How to get the category of the post and link it to the archive (of the category)
- Different templates for parent and children categories/taxonomies
- How to hide a specific category posts in my monthly archive?
- Optimal way to redirect home page to category archive?
- Display posts links from a category group by year
- Display list of Sub-Categories and the posts they contain, within one main Category
- Sort category page with custom field
- Display only deepest category on a single post?
- How to create tabled index of posts in a certain category
- How do I set a specific template for sub-categories?
- How would you create a “weekly” archive?
- Sticky Posts Not Sticking to Top of Category Archive
- Exclude a category from the filed under list only on some templates
- Root level category, tag, author and archive pages to work
- Create single.php for specific category by category id
- Category Specific Archive
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- Are Custom Taxonomy Templates Possible?
- “Sticky” posts for each category (archive.php)
- is_archive() content being shown instead of is_category()
- I want exclude the particular category in sidebar
- How to override Category rendering mechanism
- How to control template resolution if both Author and Category filter in place?
- How to filter archives both by category and tag?
- Which php file lists all the post of a category
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- Display only posts from referred category on date archive page
- Using widget logic I want to show only a widget on the archive page if there are no posts
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Apply custom category template to subcategories
- Creating archive pages for children categories
- Display “add to cart” button on every listing in product category page?
- Custom page for WooCommerce’s /product-category/
- Code to pull in a PHP file named after the category ID
- WordPress categories being called “archives” in google links. How to remove?
- conditional for sub category on archive page
- Exclude category from Tag Template
- Sorting posts by season
- weekly archive for custom category
- WP_Query() returns null when results exist!
- How to make a Thumbnails Mosaic
- Are Category or Tag Archive Pages Possible?
- Possible to make a subdirectory that loops through a single category?
- Need Category RSS Feed that shows all posts
- WooCommerce IF statements not working
- WordPress subcategories return 404 in custom template
- Set a them for all subset of category
- How to remove category titles?
- Show archives by year from just one category
- How to display only posts assigned to a particular, isolated, subcategory
- Archives for each category on WP Multisite
- Highlight wp_nav_menu when category is selected
- Category index featured image
- How do I call posts with a certain tag?
- one category template for multiple categories
- Category being displayed without base parmalink
- How to change category and year archive permalinks/rewrite rules?
- Different templates for different category tags
- How can I define a custom archive for childs of a specific category?
- Get parrent category name
- Restoring default article pagination on archives – Removing custom limits
- Category archive rewrite rule to include category/subcategory?
- The default code for “posts_nav_link” on category.php isn’t working
- Only one post is showing on category page, why?
- add_rewrite_endpoint returns 404 on archives
- Multiple category archive page
- Custom archive.php: retrieve right post categories?
- wp_dropdown_categories() scripts working erratically on sidebar
- Yearly Archive for Categories with dropdown
- Updating category template to change how subcategories display
- Categories overview that links to page displaying posts
- How can I get categories IDs if multiple categories requested via URI?
- Category archives with monthly pagination
- Category template to show different categories based on parent
- Customize category page for different custom taxonomies
- Does “show_option_all” in wp_list_categories do anything?
- How can I improve this taxonomy treating approach?
- Sub category templates
- Custom taxonomy template for categories
- How to insert category list into post creation page, and retrieve chosen categories?
- Limit number of posts on a custom category template – breaking pagination
- Category archive is displaying all posts rather than the specific category
- How to Remove a Title from All Category and Tags Page?
- How can I display the number of post associated to a category in Twig/Timber WordPress? [closed]
- Do not show sub categories in the loop on archive-product.php
- Is it possible to have a template that works on multiple categories where the link address contains the specific category?
- About title on a page