• For some reason, one of our post types would only show one post on the ordering page.

    I found that changing the args array on line 204 in include/cpto-class.php to this fixed it:

    $args = array(
                                    'sort_column'       =>  'menu_order',
                                    'post_type'         =>  $post_type,
                                    'posts_per_page'    => -1,
                                    'post_status'       =>  'any',
                                    'orderby'            => 'menu_order',
                                    'order'             => 'ASC',
                        );

    The orderby array was breaking it. Might be a bug in WordPress, but didn’t have time to track it all the way down.

    https://wordpress.org/plugins/post-types-order/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug on re-ordering page that causes only one post to show’ is closed to new replies.