How to override / customize existing Widgets?

Generally, no. Many widgets have action/ filter hooks where you can override certain pieces, but Widgets generally aren’t like Themes which can be overidden with Child Themes. Some widgets are written in such a way that they can be overridden, but that’d be on a case by case basis. Something like this you could declare … Read more

Placing a widget with $wpdb query

Placing widgets via a MySQL or something MySQL abstracted via the global variable $wpdb that is an instance of the WPDB class is not trivial. That’s not because MySQL is something complicated or because $wpdb is useless at all but this has do something with the way the widget configuration is stored inside the mysql … Read more

Display posts from category in post content?

You can do this with a query <ul> <?php global $post; $args = array( ‘posts_per_page’ => 5, ‘offset’=> 1, ‘category’ => 1 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href=”https://wordpress.stackexchange.com/questions/6376/<?php the_permalink(); ?>”><?php the_title(); ?></a></li> <?php endforeach; ?> </ul> source You can put that in your category page … Read more

Different widgets in sidebar on sub-children pages?

I use Widget Logic at my blog. It is not most convenient solution around, but definitely one of the most flexible. Widgets can be displayed/hidden based on arbitrary PHP condition. Works great with conditional tags and when that is not enough you just write your own conditions and use them.