Support » Themes and Templates » How can I put Category or Page list in <ul>

  • Resolved evlenirikbiz

    (@evlenirikbiz)


    Hi everybody!

    I want to list Category and (or) Page names in

      . Of course with true permalinks.

    For example there are structure like this.

    PAGE
    –Sub Page1
    –Sub Page2
    –Sub Page3
    ….

    CATEGORY
    –Sub Category1
    –Sub Category2
    –Sub Category3

    Who can help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I saw it before.. I think it`s using query_posts(); query.. but I can’t remember.. who can help me?

    esmi

    (@esmi)

    Forum Moderator

    Is this for a sidebar or is it to be used within the main content area of the pages?

    I solved it like this code.. For category <?php wp_list_cats('include=1'); ?> you can use include=1,2,3…

    For pages category..:

    <?php wp_list_pages('include=1,4,6,sort_column=menu_order&depth=0&title_li='); ?>

    Both of them will be in

  • ..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I put Category or Page list in <ul>’ is closed to new replies.