Support » Themes and Templates » Howe to show just children category?

  • Hi, can you please help me somebody, I try to call in template to show just children category, for example I have category CAR and in this category I have 5 subcategory ford, Audi etc… (children category) and I need to show on widget or on sidebar just this 5 children category. I try something with code

    <?php echo get_category_parents(category, display link, separator, nice name); ?>

    bur I get error

    Catchable fatal error: Object of class WP_Error could not be converted to string in….

    Can somebody help me?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Howe to show just children category?’ is closed to new replies.