Skip to main content
1 of 3
micah
  • 235
  • 4
  • 12

How can I sort the order of multiple custom field values in a custom post type?

Here's the website: KunzlerIP

At the bottom of the website, you see a slider using Fancybox. Each thumbnail pops up some content from an individual custom post type post. For this custom post type, I've enabled the following:

    function post_type_lawyers() {
    register_post_type( 'lawyers',
        array( 
            'label' => __('Lawyers'),
            'public' => true,
            'show_ui' => true,
            'hierarchical' => true,
            'supports' => array(
                'title',
                'thumbnail',
                'page-attributes',
                'post-thumbnails',
                'custom-fields',
                'revisions',
                )
        )
    ); //end register_post_type

The info for each pop-up is a custom field value and key. Currently, there are 4 values per individual post.

What I would like to do is order these custom field values in the following order:

  • Height
  • Fueled By
  • Favorite Quote
  • Areas of Expertise

If you go through these pop-ups, you'll see that a couple of them don't follow the same order for some reason and I can't figure out how to control how they display.

micah
  • 235
  • 4
  • 12