WordPress.org

Ready to get started?Download WordPress

Profiles

crsuperman34

Profile picture of crsuperman34
  • Member Since: December 16th, 2011
  • Posted a reply to "Category parent shows after sub-category", on the site WordPress Support Forums:
    $category = get_the_category(); $parent = get_cat_name($category[0]->category_parent); if (!empty($parent)) { echo $parent; } else { echo…

    2 years ago

  • Posted a reply to "Category parent shows after sub-category", on the site WordPress Support Forums:
    The sub category is listed first on Travel pages. if I use $mycategories = get_the_category_list();…

    2 years ago

  • Posted a reply to "Category parent shows after sub-category", on the site WordPress Support Forums:
    nevermind, I understand. This code doesn't do what I thought it does. I needed: get_category_parents($cat,…

    2 years ago

  • Posted a reply to "Category parent shows after sub-category", on the site WordPress Support Forums:
    Right but if I use $category[0]->cat_name; on the design category I get the parent 'design'…

    2 years ago

  • Created a topic, Category parent shows after sub-category, on the site WordPress Support Forums

    2 years ago