WordPress.org

Support

Support » Themes and Templates » [Theme: Sampression Lite] isotope filter category depth

[Theme: Sampression Lite] isotope filter category depth

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • +1

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Sampression Lite] isotope filter category depth’ is closed to new replies.