Support » Plugin: Simple Staff List » Ramdomize the Staff Member Order

Viewing 4 replies - 1 through 4 (of 4 total)
  • On line 28 of user-view-show-staff-list.php change menu_order to rand.

    $args = array( 'post_type' => 'staff-member', 'posts_per_page' => -1, 'orderby' => 'menu_order', 'post_status' => 'publish' );

    TO

    $args = array( 'post_type' => 'staff-member', 'posts_per_page' => -1, 'orderby' => 'rand', 'post_status' => 'publish' );

    Note: You’ll have to redo this change if you update the plugin.

    Note to plugin author: this would be a great place for a filter on the $args 😉

    Amazing! That was so easy.

    Thanks so much Nick.

    WP_Query is an amazing thing 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ramdomize the Staff Member Order’ is closed to new replies.