跳到内容

Post-Specific Widgets

v1.3

Marcus Downing · 2011年10月17日 上架

Add page-specific widget areas to templates with a Sidebars: header:

正在使用
10+
评分
暂无
累计下载
3,544
最近更新
2013年6月4日
需要 WordPress 3.0+已测试到 3.2.1

贡献者

截图

The meta box on an Edit Post screen, showing two page-specific sidebars.
The meta box on an Edit Post screen, showing two page-specific sidebars.
The Page Widgets screen, with two page-specific sidebars in yellow.
The Page Widgets screen, with two page-specific sidebars in yellow.

Add page-specific widget areas to templates with a Sidebars: header:

<?php
/*
Template Name: Photos template
Sidebars: notes (Photo Notes)
*/
...

Use these sidebars the normal way:

dynamic_sidebar('notes');

At present this only works on Pages.

Plums

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

导航

说明

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

© 2026 Plums