WP menu by ID order

here is the simple one line code to arrange wordpress menu by generated ID

wp_list_pages('sort_column=menu_order&title_li=');

2 thoughts on “WP menu by ID order

  1. hi satishborkar

    this post is really useful, actually i was stuck with this problem for last 2-3 months but now solve

    thanks for sharing this one🙂 Mark

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s