Support » Fixing WordPress » Show one category

  • I have a post with 2 categories (for example: A and B). If I use:
    <?php the_category(',') ?>
    I see both categories, but I would like to show only one category (for example only category B). How can I do this?

Viewing 1 replies (of 1 total)
  • <h2 class="widgettitle">Categories</h2>
    <?php wp_list_categories('exclude=##,##,##','&title_li'); ?>

    where ## is the category number to exclude

Viewing 1 replies (of 1 total)
  • The topic ‘Show one category’ is closed to new replies.