Title: Widget Display Conditions
Author: Maarten Menten
Published: <strong>2017 年 11 月 25 日</strong>
Last modified: 2021 年 4 月 22 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/widget-display-conditions.svg)

# Widget Display Conditions

 作者：[Maarten Menten](https://profiles.wordpress.org/maartenm/)

[下载](https://downloads.wordpress.org/plugin/widget-display-conditions.0.2.8.zip)

 * [详情](https://cn.wordpress.org/plugins/widget-display-conditions/#description)
 * [评价](https://cn.wordpress.org/plugins/widget-display-conditions/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/widget-display-conditions/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/widget-display-conditions/#developers)

 [支持](https://wordpress.org/support/plugin/widget-display-conditions/)

## 描述

With an easy to use interface you can control on which website page you want a particular
widget to be displayed.
 You can use built-in conditions or create some of your 
own.

### Built-in conditions

 * post type
 * post status
 * post template
 * post category
 * post format
 * post tag
 * post taxonomy
 * post
 * page type (front page, posts page, search page, 404 page, date page, author page,
   top level page, parent page, child page)
 * page parent
 * page template
 * page
 * attachment
 * post type archive
 * taxonomy archive
 * author archive
 * user role
 * user logged in
 * user

## 屏幕截图

[⌊Widget form⌉⌊Widget form⌉[

Widget form

[⌊Widget Settings⌉⌊Widget Settings⌉[

Widget Settings

[⌊Widget Settings with available options⌉⌊Widget Settings with available options⌉[

Widget Settings with available options

## 安装

 1. Upload `widget-display-conditions` plugin folder to the `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

![](https://secure.gravatar.com/avatar/54ff0e970e647a4797b624b3aad0aa43f73bee6d067f0d49ac1e0fce0d398c3f?
s=60&d=retro&r=g)

### 󠀁[easy and light](https://wordpress.org/support/topic/easy-and-light-11/)󠁿

 [May](https://profiles.wordpress.org/mokoan/) 2021 年 10 月 20 日

It is very easy and light. You can control the widget display in various condition.
Thank you very much

![](https://secure.gravatar.com/avatar/96ce975b4b9f14ba2f844cda94517b587a133f62da3f5fb4853b24c9316c0b3b?
s=60&d=retro&r=g)

### 󠀁[Fantastic !](https://wordpress.org/support/topic/fantastic-2805/)󠁿

 [Joan LLuís Balagué](https://profiles.wordpress.org/publicasl/) 2021 年 4 月 28
日

It's simple, easy and works perfect! Absolutely recommended

![](https://secure.gravatar.com/avatar/8600d2af35b1c4e440e77d8f99ec26a3a860adcfce8746e235b82c24b72befb3?
s=60&d=retro&r=g)

### 󠀁[Powerful and intuitive](https://wordpress.org/support/topic/powerful-and-intuitive-2/)󠁿

 [Ivan Lutrov](https://profiles.wordpress.org/ivanlutrov/) 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!

![](https://secure.gravatar.com/avatar/fa274893798c2cb2211cdf30d64f31273550666aace3f83374ecb0d3e98eff6d?
s=60&d=retro&r=g)

### 󠀁[Simple and Powerful](https://wordpress.org/support/topic/simple-and-powerful-116/)󠁿

 [edboco](https://profiles.wordpress.org/edboco/) 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.

![](https://secure.gravatar.com/avatar/215dd7607666d65aa8d82e6bd59d94a67abb7cf1d59351a16eaabacd02b7dd21?
s=60&d=retro&r=g)

### 󠀁[Useful plugin](https://wordpress.org/support/topic/useful-plugin-465/)󠁿

 [klode82](https://profiles.wordpress.org/klode82/) 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.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/widget-display-conditions/reviews/)

## 贡献者及开发者

「Widget Display Conditions」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Maarten Menten ](https://profiles.wordpress.org/maartenm/)

「Widget Display Conditions」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/widget-display-conditions/contributors)
为本插件所做的贡献。

[帮助将「Widget Display Conditions」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/widget-display-conditions)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/widget-display-conditions/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/widget-display-conditions/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/widget-display-conditions/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/widget-display-conditions/)。

## 更新日志

#### 0.2.8

Release date: April 22nd, 2021
 * Tested in WordPress 5.7.1

#### 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

## 额外信息

 *  版本 **0.2.8**
 *  最后更新：**5 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.0.0 或更高版本 **
 *  已测试的最高版本为 **5.7.20**
 *  PHP 版本 ** 5.6.27 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/widget-display-conditions/)、
   [English (US)](https://wordpress.org/plugins/widget-display-conditions/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/widget-display-conditions/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/widget-display-conditions/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/widget-display-conditions)
 * 标签
 * [conditions](https://cn.wordpress.org/plugins/tags/conditions/)[display](https://cn.wordpress.org/plugins/tags/display/)
   [rules](https://cn.wordpress.org/plugins/tags/rules/)[sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/widget-display-conditions/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/widget-display-conditions/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/widget-display-conditions/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/widget-display-conditions/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/widget-display-conditions/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/widget-display-conditions/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/widget-display-conditions/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/widget-display-conditions/reviews/)

## 贡献者

 *   [ Maarten Menten ](https://profiles.wordpress.org/maartenm/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/widget-display-conditions/)