Ordering pages on my template (6 posts)

  1. The Music Mag
    Posted 6 years ago #

    Okay, I've tried using the order numbering.

    I've tried downlaoding page order plugin.

    But nothing works, I can't order my pages. All i want is links last, and home first.

    Any idea on the code to look for?


  2. esmi
    Forum Moderator
    Posted 6 years ago #

    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.

  3. The Music Mag
    Posted 6 years ago #

    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" />');

  4. Samuel B

    Posted 6 years ago #

    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'); ?>

  5. The Music Mag
    Posted 6 years ago #

    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?

  6. The Music Mag
    Posted 6 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic