WordPress.org

Ideas

If_category with category name

  1. tedcarter
    Member

    I'd like to use the "if_category()" function with category. I.e if_category('Name') and not only if_category('id').

    Posted: 11 years ago #
  2. Ahmet Topal
    Member

    12345

    you can use it. eg:
    <?php is_category('General'); ?>
    or
    <?php is_category('general'); ?>

    use it like this:
    <?php is_category('name'); ?>

    Posted: 11 years ago #
  3. Alex Dunae
    Inactive

    As Ahmet noted, this is possible. Plenty of options here: http://codex.wordpress.org/Conditional_Tags#A_Category_Page

    Posted: 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    2 Votes
  • Status

    This idea has been implemented