• I’ve gotten nice results with defining separate headers and footers for template pages in the general-templage.php. However, the sidebar define statement in general-template.php is different than the define statements for footer.php and header.php, and sure enough I cannot get my template to call a different sidebar. How can I get my template page to call it’s own sidebar?
    general-template.php define statement:

    function get_sidebar( $name = null ) {
    	do_action( 'get_sidebar' );
    	if ( isset($name) && file_exists( TEMPLATEPATH . "/sidebar-{$name}.php") )
    		load_template( TEMPLATEPATH . "/sidebar-{$name}.php");
    	elseif ( file_exists( TEMPLATEPATH . '/sidebar.php') )
    		load_template( TEMPLATEPATH . '/sidebar.php');
    	else
    		load_template( WP_CONTENT_DIR . '/themes/default/sidebar.php');
    }

    Thanks,
    JSC

The topic ‘sidebar template’ is closed to new replies.