Filter Hook: The field we want to order by is either in $_GET[‘orderby’] when the user has chosen to reorder posts or saved in the plugin settings ‘default-sort-key.’ The sort direction is in $_GET[‘order’] or ‘default-sort-order.’


Action Hook: Default show_titles to false because this shortcode is used to replace the_content when themes handle our custom post type, and those themes will output a title.