Widget Display Conditions

外掛說明

網站管理員透過簡單易用的介面,便可以控制指定小工具在網站上的顯示方式。網站管理員可以使用外掛內建的顯示條件或自行建立顯示條件。

外掛內建的小工具顯示條件

  • 內容類型
  • 文章狀態
  • 文章範本
  • 文章分類
  • 文章格式
  • 文章標籤
  • 分類法
  • 文章
  • 頁面類型:首頁、文章頁面、搜尋頁面、404 頁面、日期頁面、作者頁面、最上層頁面、上層頁面、子頁面
  • 頁面的上層頁面
  • 頁面範本
  • 頁面
  • 附件
  • 內容類型彙整
  • 分類法彙整
  • 作者彙整
  • 使用者角色
  • 使用者登入狀態
  • 個別使用者

螢幕擷圖

  • 小工具表單
  • 小工具顯示條件設定
  • 小工具可用的顯示條件

安裝方式

  1. widget-display-conditions 資料夾上傳至網站的 /wp-content/plugins/ 目錄。
  2. 透過 WordPress 的 [外掛] 選單啟用外掛。

使用者評論

2019 年 12 月 23 日
It's a shame that not enough people know about this plugin because it's more intuitive and just as powerful as anything else that's out there. Well done Maarten Menten, you've done a great job on this!
2019 年 1 月 28 日
This is a great plug-in. The handles conditional widgets with great simplicity but with flexibility. More People need to know about this plug-in. Thank you for time and effort.
2018 年 8 月 22 日
This plugin is very useful. It works on Widgets Manager Page, however it got an issue on Customize Page (WordPress 4.9.8), the modal window not appears on it.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Widget Display Conditions〉的開發相關工作。

參與者

Widget Display Conditions 外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Widget Display Conditions 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.2.7

Release date: June 28th, 2020
* Tested in WordPress 5.4

0.2.6

Release date: May 30th, 2019
* Fix: – UI: Button ‘Display conditions’ disappears on widget save.

0.2.5

Release date: May 13th, 2019
* Tested in WordPress 5.2

0.2.4

Release date: May 5th, 2019
* Fix: – UI: ‘Post Format’ values not listed.
* Enhancement: – UI: List post templates per post type.
* Enhancement: – UI: Simplified field data structure.
* Enhancement: – UI: Renamed condition ‘param’ to ‘type’.

0.2.3

Release date: May 3th, 2019
* Fix – UI: Not showing on ‘customize’ screen.

0.2.2

Release date: May 1st, 2019

  • Fix – UI: Field selected value was not set correctly.

0.2.1

Release date: May 1st, 2019

  • Fix – Database update was available when no previous version was installed.
  • Fix – UI: Field items not sorted correctly.
  • Fix – UI: Submit button style.
  • Enhancement – UI: Confirmation dialog opens when unsaved changes.
  • Enhancement – UI: Preloading before modal opens.

0.2.0

Release date: Apr 26th, 2019

  • Enhancement – Redesigned api. (custom functionality needs to be updated)
  • Enhancement – More hookable.
  • Enhancement – Plugin data is removed from database on uninstall.
  • Enhancement – used namespace.
  • Tested in WordPress 5.1

0.1.8

Release date: Dec 6th, 2017

  • Fix – Taxonomy Archive Condition: call to an undefined function is_taxonomy_archive.
  • Fix – Post Taxonomy Condition: checked only for custom taxonomies. UI supplies all public taxonomies.
  • Fix – ‘sidebars_widgets’ hook: list of widgets can also be NULL (from WordPress 4.1.0 to 4.6.0)
  • Tested in WordPress 4.0 to 4.8

0.1.7

Release date: Nov 30th, 2017

  • Enhancement – renamed category id ‘media’ to ’attachment’
  • Enhancement – provided the ability to set the default operators
  • Enhancement – added operator ’is greater than’
  • Enhancement – added operator ’is less than’
  • Enhancement – added operator ‘is greater or equal than’
  • Enhancement – added operator ’is smaller or equal than’

0.1.6

Release date: Nov 28th, 2017

  • Fix – UI: ‘Page Parent’ condition was not listed (non-existing category)
  • Fix – ‘Page Type’ condition: undefined variable ‘queried_object’
  • Enhancement – UI: loader displayed when condition data is loading.
  • Enhancement – added screenshot.

0.1.5

Release date: Nov 28th, 2017

  • Fix – UI: ‘Post’ option did not list all posts except those of type ‘page’ and ‘attachment’.
  • Enhancement – more OOP.
  • Enhancement – updated screenshot UI.

0.1.4

Release date: Nov 26th, 2017

  • Enhancement – simplified API.
  • Enhancement – UI: dropdown with search function is only available from a certain amount of options

0.1.3

Release date: Nov 26th, 2017

  • Enhancement – UI: added preloader.
  • Enhancement – UI: cached loaded items.
  • Enhancement – UI: added author archive.
  • Test – tested successfully in php 5.6.27

0.1.2

Release date: Nov 25th, 2017

  • Fix – Rule ‘PostAuthor’ could not be loaded.

0.1.1

Release date: Nov 25th, 2017

  • Fix – Invalid WordPress readme file.
  • Enhancement – Grouped rules by category.

0.1.0

Release date: Nov 22nd, 2017

  • First release