• I installed the My page order plugin and it appears to work well in the administrative screens. When I drag my pages into the order that I want and tell it to set the order it appears to do so and it changes how they appear in the dashboard/pages screen. It does not however change how they are ordered when I view the page. I am using the Picture Perfect theme with a sliding menu. my web address is https://www.schandorfffamily.com. I know you have probably already answered this question for others by I couldn’t tell if that answer applied to me and the theme I am using. If I do need to change the code please be specific about where to change it because I do not have much PHP experience.
    thanks for a good plugin and the help.

    Tim

Viewing 15 replies - 16 through 30 (of 49 total)
  • Got the server error to stop now, but in admin when I drag & drop using “My PagerOrder” to reorder the ‘dealers’ sub-pages it still keeps them in alphabetical order on the front end.

    Plugin Author froman118

    (@froman118)

    Not sure what to tell you, the last change I gave you should have worked. As long as you tell the wp_list_pages function to sort by “menu_order” it should use the order you specify.

    Big thanks for all your help – I think I’ll uninstall & reinstall My Page Order & see if that helps

    JR216

    (@jr216)

    G’day

    I am quite a novis at WordPress and am having a similar problem with various other members; I have the fastfood theme and installed the WP My Page Order plugin, and can’t seem to change the order of the menu items.

    The only area I can find to change it is in the functions.php.

    I have attached the relevant code where I assume would need editing?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I have tried different options as mentioned in similar posts, simply as trial and error but still unsuccessful. I can get the sub-menu items to reorder as I want, but not the pages listed on top of the menu bar.

    Any idea how to resolve this?

    Thanks in advance.

    Plugin Author froman118

    (@froman118)

    JR,

    Switch this:

    $pages = get_pages( 'parent=0' );

    to this:

    $pages = get_pages( 'sort_column=menu_order&parent=0' );

    jennsweet1

    (@jennsweet1)

    Hello,

    When I look up php files…it looks different than above. I’m not even sure if I’m looking in the right file.

    My pages are not in the order I want them to be.

    Below is the code from functions.php (zeta theme).

    [Code moderated as per the Forum Rules. Please use the pastebin]

    What do I need to change to get the Page Order working?

    https://blog.elsaisaac.com/

    Thanks.

    JJ

    Plugin Author froman118

    (@froman118)

    JJ,

    Switch this:

    ORDER BY $wpdb->posts.post_title ASC

    to this:

    ORDER BY $wpdb->posts.menu_order ASC

    That should get it in the right order.

    jennsweet1

    (@jennsweet1)

    Wonderful!

    Works perfectly now!

    Thanks so much! ??

    ekemler

    (@ekemler)

    Hi Froman118,

    I looked at your advice for someone earlier- I am trying to order my pages and it worked- but now the sub pages have disapeared. Do you know how I can fix this? I have a stitchpress theme and you said to go into functions but I don’t have that. I have theme function, header, etc. Where would i find the command for sub pages?

    Brittany

    Plugin Author froman118

    (@froman118)

    Brittany,

    Are you on this Stitchpress theme?

    https://www.jinsonathemes.com/demo/?themedemo=stitchpress

    What did you do before to get the pages ordered correctly?

    Andrew

    OK my turn to ask froman something! I need my subpages to order correctly (as they do in admin)

    I have put in ‘sort_column=menu_order’ into…

    foreach($children as $child) {
    $tabs .= wp_list_pages(‘title_li=&include=’.$child->ID.’&echo=0&sort_column=menu_order’);
    }

    … to no avail.

    here is the full code for my sidebar.php

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thankyou!!

    I looked in my Zen theme’s functions.php. It may have something to do with this?

    // Register sidebar widgets
    if (function_exists('register_sidebar')) {
    	register_sidebar(array(
    		'name'=> 'Top Tabs',
    		'id' => 'top_tabs',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    	));
    	register_sidebar(array(
    		'name'=> 'Right Sidebar',
    		'id' => 'right_sidebar',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3>',
    		'after_title' => '</h3>'
    	));
    }
    
    ?>

    Thanks again!!

    That’s just the code to set up widget areas in the top and side menu.

    Yes, I see that now. Thanks esmi

    For the Zen theme here is the solution: for subpages you need to define the menu order in the get_pages() function before it gets to the wp_list_pages() function

    I hope that helps someone!

    if (is_page()) {
    	$this_page = $post->ID;
    	if ($post->post_parent) $this_page= $post->post_parent;
    	$children = get_page_children($this_page, get_pages('sort_column=menu_order'));
    	if($children) {
    		$tabs .= "<li>\n".'<ul class="subpages">';
    		foreach($children as $child) {
    			$tabs .= wp_list_pages('title_li=&include='.$child->ID.'&echo=0');
    		}
    		$tabs .= '</ul></li>';
    	}
    }

    froman118 you must be a hero at this forum by fixing these annoying issues.
    Unfortunately I am having the same issue, My Page Order displays fine in the backend but not in the frontend. My template is designed in Artisteer,
    https://www.amandagreechan.com
    I tried the instruction here but seems like I don’t see the same code on my header.php.

    Please help!

    Thanks

Viewing 15 replies - 16 through 30 (of 49 total)
  • The topic ‘[Plugin: My Page Order] not changing the order on the site’ is closed to new replies.