该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Simply Exclude

描述

Note to all used who tried the version 2.0 and 2.0.1 there were was bugs in the logic which upgrades the previous version of the Simply Exclude configuration to the version 2.0 format. If you lost your settings you can now reload them manually. Simply go into simply Exclude > Settings and at the very bottom is an option to reload the configuration again.

Provides an interface to selectively exclude/include Post Types, Taxonomies and Authors 4 actions used by WordPress

is_front – When the user views the Front page.
is_archive – When the user views an category or tags Archive.
is_search – When the user views a search result page.
is_feed – When a Feed is viewed/requested.

Plugin Homepage

屏幕截图

  • Simply Exclude Admin interface showing Category exclusion options.
  • Post listing showing new Simply Exclude options.
  • New Help section to answer some of your questions.

安装

  1. Upload the extracted plugin folder and contained files to your /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Navigate to you PostS/Pages/Category/Tags or any Post Type or Taxonomy sections. You will notice a new column allowing setting of the Taxonomy or Post type item in relation to selectively exclude/include the cat/tag/page for the given action is_front/is_archive/is_feed/is_search.

常见问题

Installation Instructions
  1. Upload the extracted plugin folder and contained files to your /wp-content/plugins/ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Navigate to you PostS/Pages/Category/Tags or any Post Type or Taxonomy sections. You will notice a new column allowing setting of the Taxonomy or Post type item in relation to selectively exclude/include the cat/tag/page for the given action is_front/is_archive/is_feed/is_search.
I’ve excluded all my categories and all tags why am I seeing my 404 page?

Well you need to be careful when excluding both categories and tags. Since a post can be associated with both there is potential that you have excluded all your posts because they are either members of excluded categories or members or excluded tags.

I’ve excluded Pages but attachments (images) for those pages are showing up. Why?

Only the parent Page itself is excluded from searches. By default WordPress does not yet include Pages in search. Make sure you have other search plugins correctly configured to not search attachments.

I’ve excluded a Page via the plugin but it still shows up in my sidebar when wp_list_pages is called. Why?

At the time (version 1.6.1) the plugin only effects Pages included in the traditional Search feature on a site. It does not trap all selections of Pages via other internal WordPress functions…yet!

评价

2017年12月12日
I was wary with 3 years since last update, but still has 100% functionality. Works exactly as advertised.
2017年8月23日
I tried the other plugin doing the same but only Simply Exclude managed to fix my problem of excluding ONLY from the widget Categories and/or from the homepage. Many thanks and kudos to you my man, thank you, will donate once I'll start monetize and let me know when you're in Berlin and I'll show you around!
2017年3月16日
My site was mysteriously HOSED about a week ago after an upgrade to WP 4.7.3 . After much gnashing of teeth, I discovered that it was the Simply Exclude plugin. Bums me out. A whole day wasted. I had been using it for several years without incident. But at least I learned a lot 🙂
2016年9月3日
The Plugin works perfect and it's exactly what I searched to hide the Portfolio in search. Thanks for this great Plugin.
阅读所有23条评价

贡献者及开发者

“Simply Exclude” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Simply Exclude”插件已被翻译至2种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Simply Exclude”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.0.6.6

  • Corrected bug introduced via 2.0.6.4 and 2.0.6.5

2.0.6.5

  • DO NOT USE.

2.0.6.4

  • Corrected issue reported related to Missing argument 2 for SimplyExclude::se_widget_getarchives_where()
  • Added a filter ‘se_filters_priority’ to allow control the priority of the se_filter hook. This can also be set via a define in wp-config.php or functions.php as define(‘SE_FILTERS_PRIORITY’, 99);

2.0.6.3

  • Updated logic such that excluding posts for Archive will also automatically exclude post from Archive Widget. This way you don’t get links showing from the widget that cause 404 errors. See support thread https://wordpress.org/support/topic/archive-month-shows-when-all-posts-in-month-are-excluded-giving-404-error

2.0.6.2

  • Corrected reported issue related to undefined ‘action’ settings in the widget hooks. Thanks Arnold.
  • Cleanup some of the CSS related to settings used within the dashboard area.

2.0.6.1

Corrected issue with reported PHP 5.4 related code.
Changes settings screen to split Taxonomies, Post Types and Users into tabbed screen. Better than one long screen.
Fixed issue with excluding categories on Home and Archive where it effects the pager. Note this is only for the default WordPress paging. Custom pagers may still have issue.

2.0.6

2013-03-20
Bug fixes for Illegal string offset ‘action’ PHP Warnings.

2.0.5

2012-05-16
More tweaks to the widget exclude logic and cleanup logic on main query vs extra query.

2.0.4

2012-05-16
Added new Settings option to allow control of filtering the main page WPQuery only or all WPQuery requests. Added exclusion for common post_types. General bug fixed for reported issues where filter was either not occurring or that filter was causing a blank page or missing navigation.

2.0.3

2012-03-18
Fixes to core filtering logic.

2.0.2

2012-03-05
Fixed some issues when converting from the previous version of the Simply Exclude configurations.

2.0.1

2012-03-04
Small bug. On the new Simply Exclude Help panel I user the jQuery UI Accordion package. Seems I failed to check this when setting the minimum WordPress version I was supporting (3.2). Seems jQuery UI Accordion is not available in core WordPress until version 3.3. So have added my own libraries to cover the older versions of WordPress. Sorry about that. And thanks to @biswajeet for bringing this up in the WordPress forums.

2.0

2012-03-03
Full rewrite of the plugin core code. Replace the growing list of panels and added functionality directly to the Post Type and Taxonomy panels. On both Post Types and Taxonomy panels you will see a new column allowing setting the exclude/include on Search, Archive, Feed and Home.

1.7.7

2010-05-12
Fixes: Mainly bug fixes and code cleanup. Most bugs discovered via using WP_DEBUG for uninitialized variables.

1.7.6

2009-11-14
Fixes: Issue with the Pages exclusion. Many users reporting a permissions issue.
Additions: Added handler logic to interface with two other plugins. One of the often used Google XML Sitemaps. When setting Page or Category exclusions you now have the option to update the Google XML Sitemaps exclude pages and categories automatically. The other plugin is Search Unleashed.

1.7.5

2009-07-15 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.

1.7.2.1

2009-07-01 Fixed some PHP warning by checking variable is set. Also added style for 2.8 interface. Very minor changes.

1.7.2

2009-02-05 Fixed some PHP warning by checking variable is set. Also added style to 2.7 interface.

1.7.1

2008-07-16 Fixed an issue with WP 2.6 where it automatically decided to unserialize the option data structure.

1.7

2008-05-29 Added Author to the Include/Exclude logic. Now you can exclude Author’s Posts from Search, Home, RSS, Archive.

1.6

2008-05-22 Fixed various items. Added format display for Categories and Pages to reveal hierarchy, Disable plugin functions when searching in admin. This also corrected a display exclusion bug when showing categories and pages.

1.5

20008-04-27 Fixed display issues. Changes ‘List’ to ‘Archive’. Added tags inclusion/exclusion login. Works only with WP 2.3 and greater.

1.1

2008-12-15: Added logic to work with WP version greater than 2.2

1.0

2007-11-20: Initial release