Support » Fixing WordPress » Ordering pages on my template

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    Are you using wp_list_pages in that top nav? If ‘yes, add sort_column=menu_order to its list of parameters. Then add page order numbers to each of your Pages using Admin/QuickEdit to determine the order in which they appear on your menu.

    The Music Mag


    Nope, not using wp_list_pages.

    In the header it looks like this after the meta tags:

    <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’); ?>” />

    <script language=”JavaScript” type=”text/javascript”><!–
    if ((navigator.appName == “Microsoft Internet Explorer”) && (navigator.userAgent.indexOf (“Opera”) == -1)) {
    document.write (‘<link href=”<?php bloginfo(‘stylesheet_directory’); ?>/style_ie.css” rel=”stylesheet” type=”text/css” media=”screen” />’);

    Samuel B


    yea but what comes after the </head> tag?
    That is where the navbar code would be

    look for something similar to
    <?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?>

    The Music Mag


    Ah thanks.

    Yeah it’s in the index.php and says:

    <?php wp_list_pages(‘sort_column=id&depth=1&title_li=’); ?>

    So if i changed the column=id to what you said it should work?

    The Music Mag


    Did it and it worked.


    Now one thing more to help with if possible :p

    I now have 1 full row of pages there. If I add one or two or three more, they go to the row below. That’s fine. But they move about depending on what page i’m hovering over on the header.

    Any idea of the code causing this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ordering pages on my template’ is closed to new replies.