Support » Plugin: ESB Post Type Order » how to make order by menu_order

Viewing 1 replies (of 1 total)
  • Plugin Author eSparkBiz



    In-order to achieve it, you have to change the front-end side code.

    Keep the following code in current theme “functions.php”

    add_filter('posts_orderby', 'edit_posts_orderby');
    function edit_posts_orderby($orderby_statement) {
        if( is_home() ) {
    	$orderby_statement = "menu_order ASC";
        return $orderby_statement;
Viewing 1 replies (of 1 total)
  • The topic ‘how to make order by menu_order’ is closed to new replies.