Show Secondary Sidebar on Category pages (archive)

Use the is_category() WordPress function to determine if you are in a category template.

<?php
/**
 * Alternate Sidebar Template
 *
 * If a `secondary` widget area is active and has widgets,
 * and the selected layout has a third column, display the sidebar.
 *
 * @package WooFramework
 * @subpackage Template
 */

// If this is a category template.
if ( is_category() ) {

    global $woo_options;

    $selected_layout="one-col";
    $layouts = array( 'three-col-left', 'three-col-middle', 'three-col-right' );
    if ( is_array( $woo_options ) && array_key_exists( 'woo_layout', $woo_options ) ) {
        $selected_layout = $woo_options['woo_layout'];
    }

    if ( in_array( $selected_layout, $layouts ) ) {

    if ( woo_active_sidebar( 'secondary' ) ) {

        woo_sidebar_before();
    ?>
    <aside id="sidebar-alt">
    <?php
    woo_sidebar_inside_before();
    woo_sidebar( 'secondary' );
    woo_sidebar_inside_after();
    ?>
        </aside><!-- /#sidebar-alt -->
    <?php
        woo_sidebar_after();
    } // End IF Statement
    } // End IF Statement
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)