How to skip a category on main page but showing the constant posts?
I wanted to skip a category on my home page, so that the posts from that category won’t show up. The category was “MySQL Issues” which had ID: 10.
I used this code :
The code is displayed at this URL:
http://www.bestwpthemez.com/wordpress/how-to-exclude-categories-from-your-home-page-1717/
This worked for me, but a new issue occurred. I wanted to show 10 posts on my homepage. But if there are 2 posts from the category “MySQL Issue”, it will show only 8 posts on my home page. But I wanted to show 10 post anyway (excluding this category).
Then I used this code:
By replacing -xx with the category you DO NOT want included. This will skip it from being included and then you can delete the:
Which will leave your “WP_Query_counter” intact.
Popularity: 3%














