sidebar troubles, taxonomy trouble

Categories are a hierarchical taxonomy. Tags are simply a non-hierarchical taxonomy. If you don’t have a use for categories otherwise, then use them for genre. If you have a need for them, then create more taxonomies as needed for additional classification/categorization, etc.. get_sidebar(‘mysidebar’); is for calling a sidebar template file, in your case sidebar-mysidebar.php. dynamic_sidebar(‘name’); … Read more

changing the style of sidebar

if you are using (a child of) twenty ten, then the theme will use body_class() and have a unique css class for each page; use that to style the color of the sidebar widgets; example: .page-id-23 #primary.widget-area { color: #123edf; }

Latest 5 post excerpts from 5 different authors in Sidebar

Think I’ve figured it out. Here’s the code I used courtesy of this thread on the WP Support Forum. Just replace ()<?php the_author_posts_link(); ?>() with whatever excerpt code you want to use. And Voila! <?php //list 5 latest authors $authors = array(); $count = 0; $args=array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, … Read more

Remove Sidebars from page

If you are creating your own theme you could add this to your page.php template file if(!is_page(‘999’)) { //Page to exclude sidebar from dynamic_sidebar(‘sidebarID’); } Replace 999 with the page ID you wish to exclude, and sidebarID with the sidebar you want to show.

Show 10 latest posts only from users with contributors role

you can use the author parameter of WP_Query here is a simple function to get you going with a hook to a shortcode and another hook to render this shortcode inside a simple text widget: function ten_latest_of_contributers($atts = null){ global $post; //store the current post data $temp = $post; $contributors = get_users(array(‘role’=> ‘contributor’)); //then create … Read more

Sidebar missing from Homepage

This has nothing to do with the JS error. On the home page, you’re missing a closing div tag for #content and that is throwing the sidebar down below. You have other code errors, too: [Invalid] Markup Validation of superlogical.net – W3C Markup Validator. Scroll down in the validation report to see line numbers and … Read more

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