Ultimate Category Excluder

外掛說明

Ultimate Category Excluder 簡稱 UCE,是個能讓網站管理員快速輕易地從網站首頁、彙整頁面、RSS 資訊提供及搜尋結果中排除指定分類的 WordPress 外掛。只要選取想要排除的分類,UCE 會自行完成其他必要的相關工作。

螢幕擷圖

  • 核取想要進行排除的分類

安裝方式

  1. 下載 Ultimate Category Excluder。
  2. 將 ultimate-category-excluder.zip 這個檔案進行解壓縮。
  3. 在 WordPress 管理後台的 [外掛] 頁面啟用外掛。
  4. 在 WordPress 管理後台的 [設定] 選單的 [排除分類] 中可以進行相關設定。
  5. 如果你是從舊版進行升級,請先到 [排除分類] 設定頁中將至少一個分類設定為 [從搜尋結果中加以排除] 並儲存設定,之後再回到設定頁,取消之前的設定,然後再儲存一次設定。

常見問題集

當我在站內進行搜尋時,在搜尋結果頁會出現 PHP 錯誤:Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-category-excluder/ultimate-category-excluder.php on line

請先到 [排除分類] 設定頁中將至少一個分類設定為 [從搜尋結果中加以排除] 並儲存設定,之後再回到設定頁,取消之前的設定,然後再儲存一次設定。

使用者評論

2022 年 8 月 24 日
Looks very promising, but you can only hide or exclude Blog Categories and not product categories. For that one needs some very expensive plugins. Would be neat is someone could create such a plugin though
2022 年 6 月 1 日
Hello! Can you improve your plugin for hiding category in Wordpress Category Widget? Example code: function exclude_widget_categories($args) { $options = ksuce_get_options(); $exclude = array(); foreach ( $options[ 'exclude_main' ] as $value ) { $exclude[] = $value; } $args["exclude"] = implode(',', $exclude); return $args; } add_filter("widget_categories_args","exclude_widget_categories");
閱讀全部 75 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Ultimate Category Excluder〉的開發相關工作。

參與者

〈Ultimate Category Excluder〉外掛目前已有 7 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Ultimate Category Excluder〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.7

  • Added option to disable category exclusion if request for posts is coming from authenticated API. Thanks to Daniel Jalkut (Red Sweater) (@redsweater) for providing the code.

1.6

  • Added array checks to avoid fatal error on plugin’s admin page.

1.5

  • Corrected text domain value.

1.4

  • No code changes. Syncing files.

1.3

  • Modified implementation of text domain to match the standard approach.

1.2

  • Addressed minor vulnerability reported by SCA AppSec of Checkmarx. If concerned, review your UCE category settings to ensure they are set as expected.

1.1

  • Bug fix for compatibility with Yoast Video SEO plugin.

1.0

  • Bug fix thanks to Golemming (re. deprecated function mysql_get_server_info).
  • Compatibility with WordPress 4.4.2 confirmed.
  • Documentation updated. No functionality changed.
  • Plugin development and support transferred from Michael Clark to Marios Alexandrou.

0.96

  • September 11, 2013 – Went back to the last known (no complaints at least!) version, 0.84.

0.95

  • September 10, 2013 – Fixed some more bugs that I introduced while trying to fix other bugs. Cleaned up the code, tried to be more consistent with line spacing and indents so everything is easier to read. Released the Beta version.

0.94

  • September 9, 2013 – It turns out that some themes process their home pages in odd ways. This resulted in UCE no longer correctly filtering out the excluded categories. This was a hard bug to figure out, as I couldn’t reproduce it on any of my sites. I think I’ve got it fixed now, but I do have a report that UCE is now causing a conflict with a separate page on the site. So I am working on that; but since this version should fix most people’s home pages, I’m releasing it while continuing to bug hunt. Thank you for your patience. Many thanks to Michael Westergaard, Alyx Hydrick, Alain Saintpo, Seth Vore, and Michael Pollock for their help in figuring out what was happening.

I also fixed several very subtle bugs that were throwing error messages behind the scenes. And I tweaked the system information section at the bottom of the UCE settings page.

Added the Danish translation. I don’t who to thank for providing this.
Added Brazilian translation. Thank you to Leandro Callegari Coelho.
Feel free to send me other languages if you like.

0.91

  • September 4, 2013 – You can now exclude categories from appearing in results from the built-in WordPress search engine. Other search engines (e.g. Bing, Google) may still be able to find and index your content. Also fixed a bug that excluded categories from appearing in the Post Editor. And fixed a bug in the system information section.

0.84

  • August 3, 2013 – Fixed empty category bug. Again.

0.83

  • August 2, 2013 – Added code to give version info for MySQL, PHP, WP and UCE. UCE also works with WP 3.6.

0.8

  • July 7, 2011 – Categories that do not have any posts in them will now appear on the list of categories.

0.7

  • May 6, 2011 – Added internationalization (i18n) based on Patrick Skiebe’s suggestion and code. He has provided a German translation. Feel free to send me other languages if you like.

0.6

  • February 24, 2011 – Addressed a bug in UCE that didn’t handle multiple excluded categories correctly.

0.5

  • February 24, 2011 – Addressed a bug in WP 3.1.

0.4

  • October 10, 2009 – A user pointed out a bug when trying to filter down categories in the edit posts admin area. I believe I’ve fixed this, but let me know if you still have trouble.

0.3

  • June 20, 2009 – James Revillini pointed out a few fairly obvious bugs. I’ve incorporated his changes into the software.

0.21 Beta

  • January 10, 2008 – Initial release, fixed file name bug, dashes vs. underscores

0.2 Beta

  • December 13, 2007 – Initial release, tweaked to refer to PlanetMike.com, no functionality changed

0.1 Beta

  • February 14, 2007 – Initial release