WordPress two sidebar layout or theme

In your “Blank Slate” starter theme: STEP I: Open the functions.php and find the word: “register_sidebar”. Inside the blankslate_widgets_init() function, paste the following codes just after the register_sidebar() ends, but inside the blankslate_widgets_init() function (before closing second braces – ‘}’): register_sidebar( array ( ‘name’ => __(‘Left Widget Area’, ‘blankslate’), ‘id’ => ‘secondary-widget-area’, ‘before_widget’ => ‘<li … Read more

WordPress get number of categories

This is untested, but I think it should work. Multiple categories will result in the category__in query var containing an array of the queried categories- if( isset( $wp_query->query_vars[‘category__in’] ) && count( $wp_query->query_vars[‘category__in’] ) > 1 ){ echo ‘multiple categories queried’; }

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