Support » Plugin: CMS Page Order » Re-arranging of pages does not affect order in web

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bill Erickson


    What are you using to display the listing of the pages on the frontend? Your page listing needs to be ordered by menu_order in order to have any effect.

    Hi, the code in my wp-includes/post-template.php is

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    function wp_page_menu( $args = array() ) {
    	$defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
    	$args = wp_parse_args( $args, $defaults );
    	$args = apply_filters( 'wp_page_menu_args', $args );

    but if I change page order manually in the set-up form of a page it had no effect on the order being displayed on the web just like with your plugin. Any idea?

    Plugin Author Bill Erickson


    What is the code in your theme? Everyone has the same code in /wp-includes (this is WordPress). What I’m trying to figure out is what code your theme is using to display pages so we can make sure it’s saying ‘sort_column’ => ‘menu_order’.

    My plugin provides a visual interface for controlling the Page Order text box on the individual Edit Page screen. So it makes sense that they both wouldn’t work – whatever you’re using to list pages isn’t sorting by ‘menu_order’

    Sorry, I am quite a newbie in WP. Sure, I should have looked into the themes folder, but where? I opened header.php and page.php there but no ‘sort* ‘ term is involved in the code. Which files should I check for? Thank you very much for any advice.

    In my case I solved it by setting the page-widget in the main-sidebar to: “sort by page order” , remember to frequently refresh the “sort by order” as you change the page order. I’m using the Twenty-Elven theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Re-arranging of pages does not affect order in web’ is closed to new replies.