WordPress.org

Ready to get started?Download WordPress

Forums

order wp_list_cats (3 posts)

  1. rasmuscarlsen
    Member
    Posted 8 years ago #

    Greetings,

    I like to order the categorys like:

    Default
    -subcat1
    -subcat2
    -subcat3

    This wont work: '<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>'

    Why not?

    rasmus

  2. Chris_K
    Member
    Posted 8 years ago #

    hierarchical should be a 1 to get the hierarchy.

  3. rasmuscarlsen
    Member
    Posted 8 years ago #

    Yeah! Thats it ... thx.
    If ur still around:

    How do I get it working like this:

    '<?php wp_list_pages('exclude=3,8,9,10,11&sort_column=menu_order&title_li=<h2>' . __('Aktiviteter') . '</h2>' );?>

    the title (here: Aktiviteter)

    ras
    '

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags