wp-comment-master

A great solution for comments

I never write reviews..  but this plugin is rockstar .. had to mod the template to do a standard call to the template file;  but it makes a great paginated comments solution …  we know you hate comments without pagination.

wp-comment-master

an elegant and must-have comment plugin to better satisfy your visitors, it has two main features: AJAX comment posting and comment paginitaion.

as usual; download from wordpress.org —  Jeff‘s using it on his blog…

St. Louis WordPress Designer

Hi,

I’m more of a programmer that bends and shapes WordPress to work for my clients, but you can call me a designer if you want to.

I do also design custom websites using WordPress as a CMS  … I’m located in Saint Louis Missouri and would love to design a custom WordPress website for your needs.

I’m always available for freelance or corporate sized projects projects; so just clicky over to http://www.314media.com/request-support/ and let me know what you are looking to do…  I’ll probably get back to you in just a few minutes.

Let’s bend and shape WordPress into something that is a perfect solution for your WordPress website needs.  I can design some pretty rock star layout too; or I have one of my awesome graphic designers do it for you.

Thanks for looking at my blog page…

WordPress – Create Dynamic Sidebars for Categories

So I spent a few days in the rabbit hole looking for a way to generate custom sidebars for categories and single pages – and display those sidebars dynamically based on what page/category template was being called..  Thankfully; there are a few hooks that allow for finding the category, displaying the category name, and using variables in the dynamic_sidebar function … Registering them ain’t too tough either…

Cutting to the chase; this is the function to register the sidebars based on what categories (that have posts; and are not empty) are in the DB … Dump this in your functions file and look at the widgets section — you will see new sidebars based on categories that you have that have posts – and these sidebars will be named the category name … Feel free to edit the before and after variables to match your existing theme:

if(function_exists('register_sidebar')) {
  foreach((array)(get_categories()) as $category) {
  register_sidebar(array(
    'name' => $category->cat_name,
    'before_widget' => '<div id="%1$s">',
    'after_widget' => '</div>',
    'before_title' => '<h3>',
    'after_title' => '</h3>', ));
} 

Then; your going to need to find out what category the post is in within the WordPress database and display the appropriate sidebar for that category.  You can use whatever widgets you want in there — this code has been tested on the index; category.php and single.php .. Using this on the archive or any other page — your mileage may vary…

<?php
$category = get_the_category();
$string = $category[0]->cat_name;
dynamic_sidebar( $string );
?>

That’s about it — If you need custom sidebars for categories in WordPress; this post should do wonders for you … Just a little code seems to go a long way with WordPress :)

Also; I have no idea what happens when a post is in two categories — you could do a for each in the dynamic_sidebar code; but my little project had things only categorized once .. Cheers!