內容簡介
PE Category Filter 是一款現代化的 WordPress 外掛,允許用戶在網站首頁過濾特定類別的文章,同時這些文章仍可透過類別存檔、搜尋及直接網址訪問。
【主要功能】
• 彈性過濾範圍:選擇隱藏的類別位置
• 層級意識:排除父類別也會排除子類別
• 現代架構:靈感來自 Symfony 的依賴注入模式
• 性能優化:智能快取減少 80% 資料庫查詢
• 安全增強:CSRF 保護及輸入驗證
• 無障礙支援:螢幕閱讀器及鍵盤導航
外掛標籤
開發者團隊
原文外掛簡介
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:
Flexible filter scope: Choose where excluded categories are hidden — the blog posts index only (default), also a static front page, or everywhere on the front end (including theme homepage sections and recent-posts blocks).
Hierarchy-aware: Excluding a parent category also excludes its child categories.
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 excludes posts from selected categories from your site’s front-facing listings, according to the filter scope you choose (blog posts index, static front page, or all front-end post queries including theme homepage sections). Posts from excluded categories won’t appear there, 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:
* slackware-es.com – Spanish Slackware Linux community
* 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
