Ordering CPT Archive by Custom Fields

Helpful when you need to set the default sort order of your custom post type archives based on values of custom fields within that post type.

Helpful when you need to override the default order of a Post Archive. You can easily modify this for your Custom Post Type by changing out the cpt_name and custom_field to apply to your particular situation.

Reorder a WordPress custom post type archive page by the value of a meta field. Based on this SE answer: http://wordpress.stackexchange.com/a/48658/25300

Questions

Skip to toolbar