You can exclude posts in the “Reviews” category from the main feed using the pre_get_posts hook and some WP_Query knowledge:
add_action( 'pre_get_posts', function ( $wp_query ) {
if ( ! is_admin() && $wp_query->is_main_query() && $wp_query->is_home() ) {
$wp_query->set( 'category__not_in', 4 );
}
});
Here I’ve assumed the ID of the category is 4, you’ll need to find out what yours is.
Related Posts:
- Apply the_title() filter in post & page title, but not in menu title
- How to add post count to wp_nav_menu?
- Adding Post Counts to Menu (Nav) Programmatically?
- Adding a Nav menu to post admin
- Is it possible to show a different WP menu when using password protected pages?
- What Defines What Category A Post Picks (if in multiple)
- Edit menu item title from edit page/post
- WordPress menu that shows all posts in a certain category like w3schools
- Mark menu item as current-menu-item for category
- Sidebar links for different pages
- Create dropdown list post
- Disable most recent & view all (TABS) on nav-menu.php
- Blog Posts in Custom Menu
- Get latest posts from WordPress site without header, menu and sidebar
- Is it possible to change post id for an already added menu item in WordPress?
- How to create a submenu that will navigate through different posts in the same page
- More then one menu items are assigned with “current-menu-item” class
- One menu for frontpage (one pager), and a different menu for posts
- How to list recent posts in a wp nav menu?
- Using wp_list_pages() after calling query_posts()
- Show posts count for Categories and Tags in wp_nav_menu
- How to add category post count in main navigation menu [closed]
- disable Tab post on nav-menus page (Admin)
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- How can I list posts by author?
- WordPress Menu options in the Admin: Posts for the dropdowns
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- WordPress post filter menu
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Get current post’s nav menu name (term name)
- Programmatically add posts from specific category to menu
- wp_list_categories() Exclude All Categories Except One
- How to output all taxonomy links from a custom post type in a menu?
- Making a new post visible on a specific page
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- Featured Images most often doesnt appear
- Menu does not foward to the linked posts
- Menu Items disappearing/being empty on save or post edit
- Get post slug and match with menu item slug to change css
- I want to add the 10 most recent posts under a parent category on the main menu
- Go back to the exact post page number
- How to add class to specific navbar item when post parent category is in specific category
- How do I scope out why I have two “posts” menus in an admin?
- Parent menu item does not display posts when I add the sub-items
- Automatic Table of contents with categories and posts
- Using WP page password protection as defacto login
- I lost the link to my posts in my menu bar
- How to add content to the menu
- display content in multiple columns
- Keep highlight on menu item with post pages
- Is there a global page/post/product/anything ID?
- Page and Posts loading as index page? Not loading the content
- Call posts of particular category in a page
- Add custom class to existing menu items from custom meta
- Hiding menu on mobile only when viewing posts?
- “Current” class on a singular page menu item with custom post types?
- Load Pages Menu in single.php
- Display Post by menu order
- How do i put a dropdown list of ALL my post in the sidebar menu?
- How to make posts appear under pages
- Adding a post to a page
- Dynamic Menu Item
- How to remove category and other tags from posts page
- Images and menu links disapearing after saving
- How to hide specific Gutenberg blocks settings from users
- Execute function when post is published
- Displaying content of single post
- Manually delete post from database
- Load posts dynamically
- How to show posts rank based on custom field value
- How to Replace the WordPress Featured Image with a Video?
- How to share same post to multiple site in wordpress?
- Auto set Post to Specific Categories
- How can I list random authors from current post category?
- pagination hook doesn’t work with search results
- Tumblr-like Post Types for WordPress
- Child_of not displaying all children posts.. via get_posts
- Append class to posts page
- Error after upgrading WP from 4.0.6 -> 4.4.2: empty value in wp_post_types[‘post’]
- What’s the best way to render Visual Composer in posts, not pages?
- How to get date of post when using wp_get_recent_posts()?
- how can i change WP main archives loop to sort by name or title
- Conditionals if tags exist?
- Change default category when I publish a post
- Can’t get full post title if there a spaces in title
- WP_Query of Category Not Showing First Post
- content summary of a post disappears If an images added at the beginning of the post. how to solve it?
- How To Use Custom Fields With .mp3 Links
- Save / Update meta data as multidimensional array
- Select another post in a post meta like a parent page is selected while editing a page
- How to Create another Page Category like the “Post” and “Pages”
- How can I get the last post while on the first post for pagination? As if it were infinite
- problem with admin panel
- Display selected category on post page
- How to use in_category?
- Change places custom fields with title field in post wp-admin
- Assign custom class to post content images
- Show full post only to loged-in users
- How to hide a script ( an ad) from a specific post? [closed]