WordPress.org

Ready to get started?Download WordPress

Profiles

itsgucci

Profile picture of itsgucci
  • Member Since: March 7th, 2009
  • Find me on:

  • Posted a reply to "List subcategories if viewing a Category, and brothers if in subcat.", on the site WordPress Support Forums:
    instead of using $parent = get_category($cat->category_parent); try $category_obj = get_category($cat); $parent = $category_obj -> category_parent;…

    6 years ago