WordPress.org

Profiles

crsuperman34

Profile picture of crsuperman34
  • Member Since: December 16th, 2011
  • Find me on:

  • 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…

    3 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();…

    3 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,…

    3 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'…

    3 years ago

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

    3 years ago