Sort WordPress custom post types through Front End – V2 series

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

This function format is deprecated, see this post instead Sort WordPress custom post types through Front End for v3 series

This is the shortcode format for the old version V2 series.

Sample Usage
[apto_reorder post_type="post"]

Attributes

post_type *required This will hide the Archive sort type from the interface. Only the taxonomies will be show for re-order.
Example
[apto_reorder post_type="post" hide_archive="true"]

hide_archiveThis will hide the Archive sort type from the interface. Only the taxonomies will be show for re-order.
Example
[apto_reorder post_type="post" hide_archive="true"]

taxonomyFilter the post type taxonomies to a single one, using this only the provided taxonomy will be listed. Along with the taxonomy, a drop-down selection will be show to allow the term objects which need sorted.
Example
[apto_reorder post_type="post" taxonomy="category"]

term_slug or term_idFilter a certain term of a given taxonomy, this will become simple interface with drag and drop capability, no additional options are show (i.e. taxonomies selection or archive if set to hide)
Example
[apto_reorder post_type="post" hide_archive="true" taxonomy="category" term_slug="entertainment"]

The interface will look like this:
front-end-sort-of-custom-post-type-single-taxonomy-term

capability The required capability of a user which will be allowed to create the sort. If the user role does not contain that attribute, nothing will be output. For more details about user capabilities and allowed caps see Roles and Capabilities
Example
[apto_reorder post_type="post" capability="edit_pages"]
This shortcode will allow to sort for Editor role and up.

Similar to admin interface, For a given selection, a manual drag and drop capability is available or automatic through which order by ID, name, random, date, custom fields, etc will automatically apply:

front-end-sort-of-custom-post-type-automatic-order