WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can I put Category or Page list in <ul> (4 posts)

  1. evlenirikbiz
    Member
    Posted 4 years ago #

    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?

  2. evlenirikbiz
    Member
    Posted 4 years ago #

    I saw it before.. I think it`s using query_posts(); query.. but I can't remember.. who can help me?

  3. esmi
    Forum Moderator
    Posted 4 years ago #

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

  4. evlenirikbiz
    Member
    Posted 4 years ago #

    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

  5. ..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags