BACK TO DIRECTORY

Post-Specific Widgets

by Marcus Downing

0.0
(0 ratings)

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.

Screenshots

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.

Plugin Details

Active Installs
10
Total Downloads
3,433
Version
1.3
Requires WP
3.0
Requires PHP
Tested Up To
3.2.1
Added
2011-10-17
Last Updated
2013-06-04 9:36am GMT

Ratings

5
0
4
0
3
0
2
0
1
0