- string $name: (optional) If a value is entered for $name, the function includes 'sidebar_$name.php'. For example, if you pass the value "left" to the function, it attempts to load 'sidebar_left.php'.
Example:
<?php getSidebar('left'); ?>
Includes 'sidebar.php' from the primary theme directory. If 'sidebar.php' does not exist in the primary theme directory, this function attempts to load the file from the core theme directory. If the file does not exist in the core theme directory, nothing is loaded. This function is the same as calling getFile('sidebar.php')
Example:
<?php getSidebar('left'); ?>
Thanks for your great post.I like this very much, please write more about these,wait for your update.
We've got all the documentation you'll need right here.