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?
- 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
- 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
- Optimal way to redirect home page to category archive?
- Display only deepest category on a single post?
- How do I set a specific template for sub-categories?
- How would you create a “weekly” archive?
- Root level category, tag, author and archive pages to work
- Create single.php for specific category by category id
- Are Custom Taxonomy Templates Possible?
- is_archive() content being shown instead of is_category()
- I want exclude the particular category in sidebar
- 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
- 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
- Need Category RSS Feed that shows all posts
- WordPress subcategories return 404 in custom template
- How to remove category titles?
- Highlight wp_nav_menu when category is selected
- Category index featured image
- How to change category and year archive permalinks/rewrite rules?
- Different templates for different category tags
- Get parrent category name
- Restoring default article pagination on archives – Removing custom limits
- 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
- Category archives with monthly pagination
- Category template to show different categories based on parent
- Customize category page for different custom taxonomies
- Sub category templates
- Custom taxonomy template for 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]
- 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
- why get_the_post_thumbnail( the_ID()) echos extra post id
- Image loading function not working on archive.php template
- display category list year wise in wordpress
- How to use wp_list_categories with plugin category?
- Using if statement in index.php instead of creating separate template files
- Add Date & Author Meta to Category Archive Page
- Problem with multiple loops in wordpress theme
- Archive Template being used instead of Category Template for Custom Post Type
- I would like to feature a tip on the homepage
- Show Secondary Sidebar on Category pages (archive)
- How to differentiate the homepage structure from the category page structure in WordPress template?
- Different header for each category
- Custom post type archive category page results in 404
- show only sub categories if available?
- Include home page template in specific category template
- exclude certain categories form archive widget
- Include last post date in get_categories loop
- List of post categories only associated to another custom taxonomy
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- Custom Archive Template for Multiple Categories
- Display all posts from specific category
- Meta Box: display single image on an archive-template
- Make category archives page in menu non-clickable
- Category custom template is not showing correct posts
- Custom Category Archive Pages
- Adding a category view to a page
- How to get get_categories()’s ‘hide_empty’ argument to work with global year var in the archive template?
- How to display total views of all posts of one category?
- Display Taxonomies in loop with template args
- Show posts from all categories
- Create monthly archive for parent category
- Most efficient way to have 1 template for parent, 1 template for child categories?
- How to count the number of monthly archive?
- Transfering static site to wordpress and retaining category by month paginations
- Category Templates for Post Types not Working
- Conditional statements based on custom meta value in category archives
- How do I get a single page navigation depending on the previous page?
- Add 1 category more to If_in_category statement
- Determine the category that an archive-page is for
- Easiest way to display post archives in category-then-alphabetical order?
- Template files not working for archives and categories
- have_posts is empty on category.php
- Category archive page has two URLs even when default theme is active with no active plugins