Styling the second sidebar

Per the register_sidebars() Codex page, the CSS ID of the sidebars gets incremented by default. In other words, if you’re not explicitly setting the id array value — and in your code sample above, you aren’t — you would end up with sidebars with CSS IDs of sidebar and sidebar-2. You can then style them … Read more

show tags on “single”-template sidebar only

This will display the tags of the current post in an unordered list: <?php is_single() && the_tags( ‘<ul class=”tags”><li>’, ‘</li><li>’, ‘</li></ul>’ ) ?> http://codex.wordpress.org/Function_Reference/the_tags You’ll most likely want to drop this in sidebar.php.

Common side bar for multiple websites

The short answer is you can’t. The long answer is that there are plenty of options to do so, but they’re all extremely convoluted, bug-prone, and most assuredly not anything you want to be looking into if you’re not a sophisticated PHP hacker who can gore through the WP code base blind-folded. If you are, … Read more

Adding Sidebars in WordPress Theme

Use this in your funtions.php to register sidebar if ( function_exists(‘register_sidebar’) ) register_sidebar(array(‘name’=>’Sidebar ‘, ‘id’=>’sidebar’, ‘before_widget’ => ‘<div>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<p>’, ‘after_title’ => ‘</p>’, )); To use it in your theme use the following <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar’) ) : endif; ?> Refer this to know more : http://codex.wordpress.org/Function_Reference/register_sidebar

Should I create multiple sidebars, or use or one dynamic sidebar with logic to determine it’s abilities?

Create separate sidebars for each page unless all of them are supposed to display the same set of widgets. I guess you will be managing your sidebar widgets through Appearance Widgets Screen (which displays all registered widgets) so just use register_sidebar() three times or preferably register_sidebars() (set number to 3) within your functions.php file and … Read more

Why does my sidebar get dragged down on this specific uid?

Look for unclosed elements like a div tag or unordered list tag which looks something like this: /div> /ul> You’ve got 30 errors on the page and about 4 unclosed elements. You can test any url using http://validator.w3.org/ Here’s some of the results: Error Line 1277, Column 7: End tag for body seen, but there … Read more

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