This plugin allows you to exclude posts that belong to certain categories from your home page.
This plugin allows you to exclude posts that belong to certain categories from your home page, while still being reachable from the inner sections of your site.
This is an ad-hoc solution that aims to do one thing, and do it right, with the smallest footprint possible (hopefully). So please note the following:
Given a the category “MyCategory” from which you want to exclude posts on the home page, and at the same time you want to display posts of the same “MyCategory” in a widget that is also located in the home page, will not be possible.
Such a functionality, in my opinion, would be overkilling and does not represent the approach taken by this plugin.
You can see this plugin in action the following projects:
pe-category-filter
directory to your /wp-content/plugins/
directoryIf you manage your WordPress installation using composer, follow this instructions:
Add the following in the requirements
section of your composer.json
file:
"require": {
"wpackagist-plugin/pe-category-filter":"^1.3"
},
Add the following to the repositories
section of your composer.json
file:
"repositories" : [
{
"type":"composer",
"url":"https://wpackagist.org"
}
]
Run composer install
A third installation method if you are using composer is to add the Github:
Add the following in the requirements
section of your composer.json
file:
"require": {
"pavel_espinal/pe-category-filter":"^1.4.0"
},
Add the following to the repositories
section of your composer.json
file:
"repositories" : [
{
"type":"git",
"url":"https://github.com/jespinal/PE-Category-Filter.git"
}
]
Run composer install
No. At least not for now. Read the description for more details.
composer.json
file in order to allow installation from Github.phpcs.xml
configuration file for phpcs
.