Support » Plugins and Hacks » [Resolved] Post Order – Direct Input not working

[Resolved] Post Order – Direct Input not working

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author wpseek


    Hey tvguy2000,

    I think this is a template/theme “issue”. In your theme’s index.php file search for something like query_posts or WP_Query or get_posts and change the orderby parameter to ‘menu_order’. Default is ‘post_date’.

    Thanks for getting back to me Oliver. I looked in index.php and throughout my theme (TwentyTwelve) and I did not see what you mentioned above. Any ideas where I can find it in TwentyTwelve?

    Plugin Author wpseek



    okay, add the following to your theme’s functions.php file:

    function os_posts_order( $query ) {
      if ( $query->is_main_query() ) {
        $query->set( 'orderby', 'menu_order' );
        $query->set( 'order', 'ASC' );
    add_action( 'pre_get_posts', 'os_posts_order' );

    Not tested.

    Thanks for tying Oliver, I used this code and I got a syntax error.

    Plugin Author wpseek


    Where did you add the code and what’s the error message? The code looks valid to me.

    Best would be to open your theme’s functions.php file, and add the code to the very end of the file.

    thats what a did…put it in the functions.php…at the end of the file before the closing bracket.

    Hey Oliver, I tried it again and it works…thanks a million. GREAT plugin, btw. Happy Holidays.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Post Order – Direct Input not working’ is closed to new replies.