WP Framework Forums » Troubleshooting

Changing page order for navigation

(8 posts)
  • Started 1 month ago by aellis1
  • Latest reply from philstephens
  1. Anonymous

    I want to use the wp function <?php wp_list_pages('sort_column=menu_order'); ?> to display the navigation in a different order. The ultimate goal is to have a "Home" link and a "Blog" link "Home" will just be a page that is created in wordpress. Right now, the navigation displays in alphabetical order. Where can I change this? Thanks.

    Posted 1 month ago #
  2. ptahdunbar
    Framework Overlord

    If you want to past arguments to framework_menu() which is the function called from framework_hook_menu() add this to your theme-functions.php:

    function custom_menu( $args ) {
    $args = '&sort_column=menu_order';
    return $args;
    add_filter( 'framework_menu_args', 'custom_menu' );

    The bold area is where you can pass wp_page_menu() arguments.

    Let me know if this helps.

    Posted 1 month ago #
  3. philstephens

    First of all I have to say it is a great template! Thanks!

    I had the exact issue as 'anonymous'. I have just tried making the change you suggested, but to the theme.php page.

    I am trying to reorder the pages using the 'ShiftThis' plugin, where I have uploaded the st-orderpages.php page in the 'wp-content\plugins' directory.

    I added your code as explain (I have cut and pasted, so I may have misunderstood).
    Is there anything else I need to do to get it to work?
    Many thanks,

    Posted 4 weeks ago #
  4. ptahdunbar
    Framework Overlord

    hm.. what version of WP Framework are you using?

    Posted 3 weeks ago #
  5. philstephens

    I am using WordPress 2.7.1

    Posted 3 weeks ago #
  6. ptahdunbar
    Framework Overlord

    Great. and what version of WP Framework not WordPress did you download?

    Posted 3 weeks ago #
  7. philstephens

    Sorry Ptah, I used:
    Version: 0.2.2
    Release: 02/17/09

    Posted 3 weeks ago #
  8. philstephens

    It is the core version

    Posted 3 weeks ago #

RSS feed for this topic


You must log in to post.