跳到内容

Optional Content

v1.1

kylegetson · 2010年3月15日 上架

This plugin makes it easy to conditionally display content. No more if statements in your template files!

正在使用
40+
评分
5.0 / 5
累计下载
6,096
最近更新
2011年6月13日
2 条评价需要 WordPress 2.8.0+已测试到 3.1.4

贡献者

截图

The editor button
The editor button
The window to insert the optional content
The window to insert the optional content

This plugin allows you to show or hide content on a page or post based on a simple shortcode. You don’t need PHP knowledge, or a PHP enabling plugin. Simply use a button on the WYSIWYG editor to select under what condition you would like the content displayed. Fast, simple, and safe. Keep your template files clean by removing your PHP logic. Now allows shortcodes inside of the conditional content.

Display content based on the following conditions:

  • Manual on/off setting
  • Before, after, or between specific times (repeated daily)
  • Before, after or between specific dates
  • Based on if the visitor is logged in
  • Based on a specific user (by user id) or multiple users (by user id)
  • Based on GET variables (variables passed on the URL in the form of http://www.example.com/about/?test=value where the variable is ‘test’)
  • Based on POST variables (variables sent via forms)
  • Based on REQUEST variables (either GET or POST variables)

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums