Possible to specify custom sidebar in function?
-
WordPress allows users to specify a specific sidebar by using this code:
<?php get_sidebar(‘nice-bar’); ?>
Am I correct in assuming that you would have to register any new sidebars created in the Custom Sidebars plugin in order for WP to recognize them? I am trying to load a specific sidebar in my custom search.php page, which uses the standard
<?php get_sidebar(); ?> call.
Just sticking the new sidebar name created in Custom Sidebars does not work, because WP is not “aware” of it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Possible to specify custom sidebar in function?’ is closed to new replies.