Custom Ordering (1 post)

  1. rcvaughn
    Posted 3 years ago #

    So I am working on creating a plugin that adds staff members. I want to be able to customize the ordering, instead of just alphabetically.
    I have a custom post type for saving the order #, but it doesn't actually put anything in order. Here is what I have so far.

    <?php query_posts( array(
     	'post_type' => 'employees',
     	'posts_per_page' => -1,
     	'orderby' => 'dispord',
     	'order' => 'ASC'
    ); ?>

    Right now it only sorts by the ascending, but not to the number I assign it to. Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic