The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Sorting menu items (4 posts)

  1. consumedsoul
    Posted 8 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(); ?>
    <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 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='); ?>
    				<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    <div id="splash"></div>
    <div id="mainbck">
  2. consumedsoul
    Posted 8 years ago #


  3. whooami
    Posted 8 years ago #


    If you scroll down it provides parameters for sort_order

  4. consumedsoul
    Posted 8 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


No tags yet.