內容簡介
這個外掛允許你在首頁排除某些分類的文章,但在網站內部其他部分仍然可以被訪問到。
這是一個臨時的解決方案,旨在做好一件事,並且用最小的足跡(希望如此)做好它。因此請注意以下內容:
此外掛的功能不能限定為首頁的某個小工具。例如:
如果您要從首頁排除分類「MyCategory」的文章,同時您還想在位於首頁的小工具中顯示同一個「MyCategory」的文章,這是不可能的。
在我看來,這樣的功能有些過度設計,不符合此外掛的設計理念。
此外掛的焦點是簡單、高效和代碼的正確性。
以下是此外掛在以下項目中的實際應用:
http://asteriskfaqs.org- 重要的 VoIP 社區項目。
http://centosfaq.org
http://slackware-es.com- Slackware Linux 項目網站的西班牙語版本
外掛標籤
開發者團隊
原文外掛簡介
PE Category Filter is a modern WordPress plugin that allows you to filter specific categories from your website’s home page while keeping those posts accessible through category archives, search, and direct URLs.
Key Features:
Modern Architecture: Symfony-inspired dependency injection and service layer patterns
Performance Optimization: Intelligent caching with 80% reduction in database queries
Security Enhancements: CSRF protection, input validation, and output escaping
Accessibility: Screen reader support and keyboard navigation
Testing: Comprehensive automated test suite (unit and integration tests) covering core functionality
How it works:
The plugin modifies WordPress’s main query on the home page to exclude posts from selected categories. Posts from excluded categories won’t appear on the home page, but they remain fully accessible through:
* Category archive pages
* Search results
* Direct URLs
* RSS feeds
* Other WordPress queries
Live Examples:
This plugin is actively used on:
* trendsanctuary.com – Technology, life and home trends and insights
* ecosdeleden.com – Educational content for children
Configuration
Go to Settings > PECF Plugin in WordPress admin
Select categories you want to exclude from the home page
Click “Save Changes”
Posts from excluded categories won’t appear on the home page but remain accessible through category pages, search, and direct URLs
License
This plugin is licensed under the GPLv2 or later.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
