Forums

how can i know that the current category have subcategory or don't have it? (2 posts)

  1. alwaysfine
    Member
    Posted 3 years ago #

    how can i know that the current category have subcategory or doesn't have it?

    for example, <?php if (!empty($this_category->category_child)) { ?>

  2. MichaelH
    moderator
    Posted 3 years ago #

    Maybe these functions in wp-includestemplate-functions-category.php
    :

    function get_category_parents

    or

    function get_category_children

Topic Closed

This topic has been closed to new replies.

About this Topic