WordPress.org

Ready to get started?Download WordPress

Forums

Sampression Lite
isotope filter category depth (3 posts)

  1. ieub
    Member
    Posted 1 year ago #

    Hi,

    I am trying to find a way to limit the depth of the home page menu filter in order to hide the sub-categories on the home page just like the wordpress functions would work with :

    <?php wp_list_pages('title_li=&depth=1'); ?>

    And on an other side I'd like to filter with isotope these sub-categories on an other page. Is that even possible and if so, how ?

    thanks for any answers.

    regards,

    B.

    http://wordpress.org/extend/themes/sampression-lite/

  2. 3x7
    Member
    Posted 1 year ago #

    +1

  3. 3x7
    Member
    Posted 1 year ago #

    header.php

    find
    $categories = get_categories();
    change to
    $categories = get_categories('child_of=1');,
    with number you select the depth.

    you can also add 'hide_empty=1', etc

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic