New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
TruePoker.eu Affiliate Program
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    409
    Feedback Score
    38 (100%)

    Default Help with Nav bar in Wordpress

    I'm trying to make the drop down menu's alphabetical on this site:
    Poker Bankroll Tips

    I'm pretty sure it has something to do with this line of code:
    <div id="navbar">

    <ul id="nav">
    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>

    <?php wp_list_pages('title_li=&depth=2&sort_column=menu_ order'); ?>
    </ul>

    </div>

    but I'm not sure what to change it to

    Any help would be appreciated.
    Thanks,

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    May 2009
    Location
    United States
    Posts
    225
    Feedback Score
    4 (100%)

    Default

    Try this:

    PHP Code:
    <div id="navbar">

    <ul id="nav">
    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>

    <?php wp_list_pages('title_li=&depth=2&sort_column=post_title'); ?>
    </ul>

    </div>
    Not entirely applicable but there is a good plugin to manually drag/drop the ordering of WP pages:

    WordPress › My Page Order WordPress Plugins

  3. #3
    Formerly TPB
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Wales
    Posts
    666
    Feedback Score
    16 (100%)

    Default

    EDIT: Ha yeah, not great with wordpress.

    I can't think of another way than just coding it in yourself. There may be another way to do it, but I don't think it's as easy as you think it might be.

    You can replace this:

    Quote Originally Posted by NdeJonge View Post

    <div id="navbar">

    <ul id="nav">
    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>

    <?php wp_list_pages('title_li=&depth=2&sort_column=menu_ order'); ?>
    </ul>

    </div>
    With this:

    PHP Code:
    <div id="navbar"
     
        <
    ul id="nav"
            <
    li><a href="http://pokerbankrolltips.com">Home</a></li
     
            <
    li class="page_item page-item-8"><a href="http://pokerbankrolltips.com/poker-rooms/">Poker Rooms</a
    <
    ul
        <
    li class="page_item page-item-20"><a href="http://pokerbankrolltips.com/poker-rooms/cake-poker-review/">Cake Poker Review</a></li
        <
    li class="page_item page-item-26"><a href="http://pokerbankrolltips.com/poker-rooms/full-tilt-poker-review/">Full Tilt Poker Review</a></li
        <
    li class="page_item page-item-31"><a href="http://pokerbankrolltips.com/poker-rooms/aced-poker-review/">Aced Poker Review</a></li
        <
    li class="page_item page-item-34"><a href="http://pokerbankrolltips.com/poker-rooms/carbon-poker-review/">Carbon Poker Review</a></li
        <
    li class="page_item page-item-37"><a href="http://pokerbankrolltips.com/poker-rooms/cd-poker-review/">CD Poker Review</a></li
        <
    li class="page_item page-item-40"><a href="http://pokerbankrolltips.com/poker-rooms/pkr-poker-review/">PKR Poker Review</a></li
    </
    ul
    </
    li
    <
    li class="page_item page-item-10"><a href="http://pokerbankrolltips.com/poker-bonuses/">Poker Bonuses</a
    <
    ul
        <
    li class="page_item page-item-90"><a href="http://pokerbankrolltips.com/poker-bonuses/cake-poker-sign-up-code/">Cake Poker Sign Up Code</a></li
        <
    li class="page_item page-item-93"><a href="http://pokerbankrolltips.com/poker-bonuses/full-tilt-referral-code/">Full Tilt Referral Code</a></li
        <
    li class="page_item page-item-111"><a href="http://pokerbankrolltips.com/poker-bonuses/cd-poker-coupon-code/">CD Poker Coupon Code</a></li
        <
    li class="page_item page-item-119"><a href="http://pokerbankrolltips.com/poker-bonuses/pkr-bonus-code/">PKR Bonus Code</a></li
        <
    li class="page_item page-item-178"><a href="http://pokerbankrolltips.com/poker-bonuses/aced-poker-bonus/">Aced Poker Bonus</a></li
        <
    li class="page_item page-item-182"><a href="http://pokerbankrolltips.com/poker-bonuses/carbon-poker-bonus/">Carbon Poker Bonus</a></li
        <
    li class="page_item page-item-296"><a href="http://pokerbankrolltips.com/poker-bonuses/fortune-poker-bonus/">Fortune Poker Bonus</a></li
    </
    ul
    </
    li
    <
    li class="page_item page-item-12"><a href="http://pokerbankrolltips.com/poker-strategy/">Poker Strategy Articles</a></li
    <
    li class="page_item page-item-279"><a href="http://pokerbankrolltips.com/links/">Links</a></li
    <
    li class="page_item page-item-364"><a href="http://pokerbankrolltips.com/rakeback/">Rakeback</a
    <
    ul
        <
    li class="page_item page-item-355"><a href="http://pokerbankrolltips.com/rakeback/full-tilt-rakeback/">Full Tilt Rakeback</a></li
        <
    li class="page_item page-item-368"><a href="http://pokerbankrolltips.com/rakeback/cake-poker-rakeback/">Cake Poker Rakeback</a></li
    </
    ul
    </
    li
        </
    ul
        
    </
    div
    But just re-arrange the <li>stuff</li> sections to get the links in alphabetical order. In all honesty though you're far better off leaving as it is.
    Last edited by GregW; 08-12-2009 at 04:33 PM.

  4. #4
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Dec 2008
    Location
    Canada
    Posts
    409
    Feedback Score
    38 (100%)

    Default

    Quote Originally Posted by cprpoker View Post
    Try this:

    PHP Code:
    <div id="navbar">

    <ul id="nav">
    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>

    <?php wp_list_pages('title_li=&depth=2&sort_column=post_title'); ?>
    </ul>

    </div>
    Not entirely applicable but there is a good plugin to manually drag/drop the ordering of WP pages:

    WordPress › My Page Order WordPress Plugins
    Worked like a charm. Thanks man.

  5. #5
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    May 2009
    Location
    United States
    Posts
    225
    Feedback Score
    4 (100%)

    Default

    Quote Originally Posted by NdeJonge View Post
    Worked like a charm. Thanks man.
    No problem! If you ever have a need for that plugin I listed above it is a god send for rearranging the order of pages and subpages.

  6. #6
    Member
    My Status
     

    Add as a friend
    Join Date
    Aug 2009
    Location
    uk
    Posts
    34
    Feedback Score
    0

    Default

    yeh, try page order plugin - do whatever you want


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant