We often find ourselves looking for the best and easiest way to exclude categories or pages from the navigation menu, the WordPress loop, the category list, the feed, the search, and/or the archive. It's so easy to forget one of these elements and accidentally let that category slip into the blogstream. We actually wrote ...
View Post
The
WP-Sticky WordPress plugin allows you to easily choose to "stick" certain posts at the top of your blog. This can also be done via code, as I explained in a post a few months ago where
I ...
View Post
Anthology of Ideas shares his method for creating a horizontal drop-down menu for categories, involving the use of CSS and Javascript.
Displaying WordPress categories in a horizontal dropdown menu
View Post
I've never come across a situation where I would need this feature, but I'd like to have this on record in case it ever comes up. Mike has developed a WordPress plugin,
Themed Categories that allows the user to select different uploaded themes for different categories. According to the ...
View Post
There are many situations where you want to make sure that certain categories only appear on some pages, and not on others. Here are a few WordPress plugins that can help you do this without having to hack your template files:
Front Page Excluded Categories WordPress plugin - this plugin ...
View Post
You may want to display posts from a specific category on the homepage or other pages of your site. For example, you might want to have a box that displays the latest three posts from your News category, or have links to your latest podcasts....
View Post
To get a post from a specific category to appear at the top of the page above the rest of the posts, and to only change when a new post from that particular category is added, use the following code:
<?php /*?><?php $my_query = new WP_Query('category_name=featured&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;?>
<div class="featureItem">
<h1>Feature: <a href="<?php the_permalink() ...
View Post
<?php$postlist = get_posts('category=6&numberposts=5');
foreach ($postlist as $post) :?><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li><?php endforeach; ?>
Use this in the sidebar to display a defined number of posts from a specified category. Where it says "category=6" replace the 6 with the relevant category ID number, and where it says "numberposts=5" replace the 5 with the number of ...
View Post
WordPress allows you to give different styles to different categories in a range of ways. You can style a category page: this means that every category page can have its own unique style. For example, let's say you have a site about vegetables, where every vegetable is a category. You can style ...
View Post
You may have certain categories in your WordPress blog that you want to appear differently than other categories. For example, what if you have a category called "Tomatoes" and a category called "Cucumbers," and you want the titles of every post in the Tomatoes category to be red, and the titles in the Cucumbers ...
View Post