WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Specturm theme menu order is reversed (3 posts)

  1. CiderJack
    Member
    Posted 3 years ago #

    With the Spectrum theme
    http://wordpress.org/extend/themes/spectrum
    the menu at the top of the page displays in reverse order, and I'd like the pages to display in the correct order. I have set the page order for each page, 0-5, and they display correctly in the footer menu.

    The div in header.php looks like this:

    <div class="pageList">
         <ul>
              <?php wp_list_pages('title_li=&depth=1'); ?>
         </ul>
    </div>

    The client source looks like this:

    <div class="pageList">
      <ul>
         <li class="page_item page-item-16"><a href="http://example.com/" title="Intro">Intro</a></li>
         <li class="page_item page-item-25"><a href="http://example.com/who/" title="Who We Are">Who We Are</a></li>
         <li class="page_item page-item-8"><a href="http://example.com/resources/" title="Resources">Resources</a></li>
         <li class="page_item page-item-10 current_page_item"><a href="http://example.com/projects/" title="Projects">Projects</a></li>
         <li class="page_item page-item-12"><a href="http://example.com/blog/" title="Blog">Blog</a></li>
         <li class="page_item page-item-14"><a href="http://example.com/membership/" title="Membership">Membership</a></li>
      </ul>
    </div>
  2. esmi
    Forum Moderator
    Posted 3 years ago #

    <?php wp_list_pages('title_li=&depth=1'); ?> will list pages in menu (page) order followed by page title.
    http://codex.wordpress.org/Function_Reference/wp_list_pages

    Something else may be interfering with your page ordering.

  3. CiderJack
    Member
    Posted 3 years ago #

    d'oh - the problem wasn't in the php, it was in the CSS:
    #header .pageList li {float:right;}
    All fixed now!

    Thanks for the help anyway, esmi :)

Topic Closed

This topic has been closed to new replies.

About this Topic