A client I'm making a website for has requested multiple widgetised sidebars, ie, one for each page.
I made a page template for each page, and registered a widget space for each page, and hooked up the relevant widget space in the template's file.
I tested it, and it worked, I popped downstairs to make some dinner and upon coming back having changed nothing at all it's not worked.
In functions.php
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Press Page','id' => 'press','description' => "Shown on pages with the Press Page Template", 'before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'
));
In the template
<?php get_sidebar('press'); ?>
Literally can't understand what's happened as it was working and I hadn't touched anything! Urgently need help too as said client is getting rather tetchy about her website not being done right this second! A problem which I'm sure many of you have to put up with, just like myself.