You can do that by using category parameter in the wp_query
change the line which looks like this
$blog_query = new WP_Query( array( 'post_type' => 'post', 'paged' => $paged ) );
to
$blog_query = new WP_Query( array( 'post_type' => 'post', 'paged' => $paged, 'cat' => 4 ) );
// Here ‘4’ is the id of category you want to show, whereas you can also use the category name
For details see this link: http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
Related Posts:
- Categories Template Assistance
- Use template for posts with a particular category grandparent
- How to show single category archive
- How to pick the default selected value in wordpress dropdown?
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Create page template via functions.php?
- Need help with pagination
- pass html code to worpdress
- I need to display posts in subcategory beside posts in main category
- Polylang and template files
- Showing the project type in HREF
- why is this content-template not showing any of my blog-entries?
- Why have on every line
- WordPress and event-driven programming – what is it about?
- Displaying a WooCommerce product via PHP
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- wp_remote_get returns an error for valid URL
- Limit the Excerpt field in WP-Admin in words
- Problems with function on function.php
- Switching between custom templates in a post type of the admin menu
- Custom category code not showing all posts
- Random Default Avatar Function
- Automatically add custom CSS to new posts using a category template
- Customizer: Output default value in Customizer CSS
- How to add just one specific page to widget without plugin?
- Taxonomy linked to pages
- Converting HTML Template to WordPress Theme
- Can I install/embed WordPress on a ‘single page’?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Let Users Choose Post Categories
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Custom posts in different columns style
- need help with existing code showing subpages
- Advanced Custom Fields not displaying
- Create a Blog Template Page
- Showing latest post without 301 redirect
- WordPress template page name displayed on screen
- Exclude posts with specific metadata from search?
- single.php with different look by category
- Warning: Illegal string offset on theme options page [closed]
- Clickable image link sends people to wrong URL
- Adding conditional text to a PHP Shortcode Template
- Use get() method to grab all categories and output inside another method
- Check class_exists before class definition / Doxygen problem
- Extract links from content
- Integrating Yii2 and WordPress
- Custom Registration username_exists / email_exists
- Displaying list of posts in category page
- How to get the current category with custom posts
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- After disabling WPML multi currency, the currency is still handled by the WPML
- How to get current category
- PHP Helper Class to create shortcodes
- Is it possible to add a custom page to a free WordPress site? [closed]
- Splitting the_content() by size?
- Is there a hack for using is_page() within the function.php file?
- How to Fix an Archive.php That Displays All Posts?
- php loading different structure than source code
- Make next post button link to random post
- Show parent categories of the current category
- is user member of a group, show them categories [closed]
- Using multiple variables to assign categories to an array
- Pagination at category doesnt work with same name of page
- WP-Bakery – Add custom colors to buttons with template colors
- Require()/Include() post template adding extra content
- Child-Theme Category View with modified permalinks (%category% removed)
- Change the “Show All” button in a WordPress Portfolio Filter
- retrieve “Link Color” value
- How to move a post from one category to another
- Create category after theme setup and modify the default one
- Create form which redirects to site in network?
- Search only for posts with specific metadata?
- How to display last whole post on the homepage
- Displaying 3 Category Posts differently
- Is there a way to have chunks of a page’s content expire?
- How to list categories by page id in wordpress
- Add point on excerpt post
- Where can I find the declaration of `$_wp_theme_features`?
- WordPress using get_term to retreive slug not working as expected
- Static home page ignored
- How do I routinely extract the thumbnail of the most recent post?
- WooCommerce – Print Processing orders [closed]
- Loop returns more items than exist?
- Display tab title as ‘blog tagline | blog title’
- Front end post submissions do not get submitted in the category
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Showing custom field contents without listing description
- Check if values exists DB
- Trying to exclude posts from a category on the home page
- Pagination on Custom Loop
- Showing Subcategory’s Name and Link Instead of Parent Category’s
- Show a Category Specific Info Box
- MySQL Engine vs. Charset
- Custom PHP-coding in MU installs
- If I define a variable in header.php, how do I make it available to templates?
- Select area and checkbox data is not saving?
- Remove /category/ from category (archive) page URLs (without using a plugin)
- In reading settings posts are set to “blog” and I have page-blog.php but no posts