WordPress.org

Ready to get started?Download WordPress

Forums

CMS Page Order
[resolved] Re-arranging of pages does not affect order in web (6 posts)

  1. oceanboy2
    Member
    Posted 1 year ago #

    Hi, I use the plugin with multisite. In one site I re-arranged pages but this did not have any effect on the order the pages are displayed on the website. I emptied cache and tried with several browesrs, same result.

    http://wordpress.org/extend/plugins/cms-page-order/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. oceanboy2
    Member
    Posted 1 year ago #

    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?

  4. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    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'

  5. oceanboy2
    Member
    Posted 1 year ago #

    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.

  6. Pake
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.