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

    (@alphawolf)

    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’.

    Thread Starter Haz

    (@tvguy2000)

    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

    (@alphawolf)

    Hey,

    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.

    Thread Starter Haz

    (@tvguy2000)

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

    Plugin Author wpseek

    (@alphawolf)

    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.

    Thread Starter Haz

    (@tvguy2000)

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

    Thread Starter Haz

    (@tvguy2000)

    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 ‘Post Order – Direct Input not working’ is closed to new replies.