SDAC Blog

Check out our blog for WordPress updates, WordPress plugin reviews, and general web development hints.

hr
hr

If you ever wanted to only show the content of the category you were on in the category view of WordPress (instead of the category you are on plus all of it's subcategories - you can easily do so by adding the code below to the template that is used to show your category content

You would start your loop with this:

PHP:
<?php $cat = intval( get_query_var('cat') ); while (have_posts()) : the_post(); if (in_category($cat) ) : ?>

Put your title, content functions here

and where you normally see the

PHP:
<?php endwhile;?>

call, put

PHP:
<?php endif;endwhile; ?>

to close the additional (in_category) if statement.

This code gets the current category and then only displays categories that are in that category (not sub category)

separate
hr
hr

url: http://www.healthblogs.org/

HealthBlogs

SDAC Inc. provided:

  • XHTML/CSS/programming
  • WordPress theme customization

technologies used:

XHTML, CSS, WordPress , PHP, CSS

front end:

The client approached me with a mockup of the site and I created the WordPress theme (CSS/XHTML/PHP logic).

back end:

This was a very straightforward build for one of my clients that I have provided WordPress Mu support for over the last year. The theme uses WordPress widgets so the client can easily add/delete content from the sidebars.

lessons learned/random thoughts:

The new version (1.5.x of WordPress Mu is really great to work with.

separate