Support » Developing with WordPress » Get categories on K2 and display them as needed

  • Hi!

    I´m using K2 RC1 on one site. The thing there is that i have 2 “categories of categories”. One is the actual category of the news, and the other one is where it happened.

    The problem is that K2 shows “Category 1 and Category 2”, whereas i need to display each on a different place.
    I know i need a big php “if” but i don´t know how to recognize each of them.

    something like
    “if one of the categories is A, B, C, D then show it here”
    “if the other cat is E, F, G, show here”

    Hope there´s a workaround on this 😀

    K2 uses this to get the category right now

    if (!$post_asides) { printf(__('<span class="entry-category">%s.</span>','k2_domain'), k2_nice_category(', ', __(' y ','k2_domain')) ); }

    thanks a lot in advance!

    the ‘ y ‘ is the separator.

  • The topic ‘Get categories on K2 and display them as needed’ is closed to new replies.