跳到内容

Side Content

v1.0

alfaguru · 2008年7月9日 上架

Side Content enables you to create widgets which have different content on different pages.

正在使用
10+
评分
2.0 / 5
累计下载
1.9 万
最近更新
2015年1月25日
1 条评价需要 WordPress 2.5+已测试到 4.1.0

贡献者

This plugin provides similar functionality to the Drupal Side Content module.

It enables you to define a set of widgets which are effectively placeholders. Each one is empty until you assign content
to it when editing a page.
This enables you to extend the content of the page into the sidebar.

Suppose, for example, you have a set of pages about people in your company. You could use a side content
widget to add a biography for each of them, or a photo, or to list their favourite pizza toppings.

You can use the plugin without any template changes at all, but it does provide a simple API so you can test for the presence of side content widgets and adjust your templates accordingly.

As of release 0.7 of the plugin, it supports the WP shortcode API. There is also an extra add-on plugin which provides the same support for NextGEN Gallery shortcodes (development sponsored by Comunicrea s. n. c.).

Release 0.75 fixes a bug affecting side content widgets with names containing characters other than lowercase alphanumerics. A new contributed extension provides integration with the qTranslate plugin.

Release 0.8 adds no new functionality but makes the plugin compatible with WP 2.7.
Release 0.9 adds no new functionality but makes the plugin compatible with WP 2.8.1.
Release 1.0 adds no new functionality but makes the plugin compatible with WP 4.1.0.

API

Use the following code to test for the presence of side content widgets:

<?php if(function_exists('the_side_content') && the_side_content()->has_widgets() :?>

Use the following code to test for the presence of a particular side content widget called ‘widget name’:

<?php if(function_exists('the_side_content') && the_side_content()->has_widgets('widget name') :?>

The plugin defines a filter, ‘side_content’, which can be used to preprocess side content widgets before display.

Plums

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

导航

说明

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

© 2026 Plums