Support » Fixing WordPress » List pages

  • Resolved jami1955

    (@jami1955)


    The function
    <?php wp_list_pages('title_li=&depth=1&include=495,1500,1502,11,496,268,868'); ?>

    should list the pages specified in the order they’re listed, no? This call in my head as a navbar, is printing the pages in it’s own order, randomly. Any ideas why that would be happening?

    thanks
    JSC

Viewing 2 replies - 1 through 2 (of 2 total)
  • The ‘include’ parameter only specifies which pages to include, not the sort order. You can specify an order by editing each Page and assigning a number to the ‘Order’ under ‘Page Attributes’ on the edit panel.

    THANKS!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List pages’ is closed to new replies.