• Hello,
    I want to have a separate area on my home page that will show the posts that I assign a category called “featured” on a separate area. How can I do that? (This area is to be separate from the regular showing of posts)

Viewing 1 replies (of 1 total)
  • A simple but not 100% elegant sollution is this:

    Add the following to the index.php of your theme, just below “the loop”:
    <?php if (in_category('218')) continue; ?>
    “218” of course should be the category ID of your “featured” category. (And just in case, “the loop” is this <?php while (have_posts()) : the_post(); ?>)

    This will exclude the category “featured” from the index.

    Then make a link in the “blogroll” or whereever directly to the category.

Viewing 1 replies (of 1 total)

The topic ‘Featured posts area’ is closed to new replies.