elegant themes

Tag: "categories"

How to exclude multiple categories from your WordPress feed

| January 23, 2011 | 3 Comments
I was searching desperately for a solution for creating a custom WordPress feed that excluded two categories that would be used to offer a unique Feedburner feed to readers. I found posts that explained how to exclude categories globally, but that wasn't relevant since these categories still needed to be available to readers ... View Post

Exclude Categories from Feed, Archives, Search, and Home page in WordPress

| January 14, 2010 | 3 Comments
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

Use WP-Sticky WordPress plugin to easily create feature or “sticky” posts

| February 19, 2008 | 10 Comments
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

Display WordPress categories in a horizontal dropdown menu

| January 17, 2008 | 2 Comments
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

Apply different themes to different categories with WordPress Themed Categories Plugin

| January 11, 2008 | 15 Comments
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

Exclude categories from certain pages with WordPress plugins

| January 9, 2008 | 3 Comments
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

Display posts from specific categories on a Page

| November 8, 2007 | 93 Comments
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

Creating a feature post or sticky post in a WordPress blog

| October 29, 2007 | 3 Comments
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

Display a selected number of posts from one category in the sidebar

| October 29, 2007 | 30 Comments
<?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

Giving different styles to different WordPress categories

| September 7, 2007 | 20 Comments
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
Page 1 of 212