Support » Fixing WordPress » Show child of current category

  • Resolved tomasi514


    Hi guys, this is my second sidebar where I list subcategories of category #18, how can I show make it dynamic and show subcategories list of current category instead ?Attempts not successful up to now…

    <div id="sidebar">


Viewing 2 replies - 1 through 2 (of 2 total)
  • Like this?

    if (is_category()) {
    $cat = get_query_var('cat');

    I had tried same query found in another post but forgot the dot before $cat, big thank you Michael!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show child of current category’ is closed to new replies.