WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sorting menu items (4 posts)

  1. consumedsoul
    Member
    Posted 6 years ago #

    How would I sort the menu items at http://www.davidchomusic.com by ID instead of by title?

    I'm assuming it requires manipulation in the header.php file:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head(); ?>
    </head>
    <body>
    <div id="box">
    <div id="top">
    <div id="header"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
    <div id="desc">
    <?php bloginfo('description'); ?>
    </div>
    </div>
    <div id="main">
    <div id="nav">
    <ul class="nav">
    <li class="first"><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    
    				<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    </div>
    </div>
    <div id="splash"></div>
    <div id="mainbck">
  2. consumedsoul
    Member
    Posted 6 years ago #

    -bump-

  3. whooami
    Member
    Posted 6 years ago #

    http://codex.wordpress.org/wp_list_pages

    If you scroll down it provides parameters for sort_order

  4. consumedsoul
    Member
    Posted 6 years ago #

    Actually, I just realized that you can just specify the order when editing the page details in the WP interface. [doh!] :]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.