Support » Plugins » Hacks » Custom Ordering

  • 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?

  • The topic ‘Custom Ordering’ is closed to new replies.