Sort WordPress custom post types through Front End

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

The Advanced Post Types Order plugin now allows you to create custom sort lists directly from the front end of your site. This feature provides a seamless experience for users who do not have access to the WordPress admin interface, making content management more accessible and user-friendly.

Front-End Sort Interface Overview

When enabled, the sort interface will appear on the front end of your site, allowing users to easily reorder content. Below is an example of how the interface might look:

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

Enhancing Content Management with Advanced Post Types Order

WordPress has evolved into one of the most powerful Content Management Systems (CMS) available, thanks to its rich features, user-friendly interface, and ease of use. However, certain advanced functionalities, such as sorting custom post types, are not natively supported by WordPress. The Advanced Post Types Order plugin fills this gap, allowing you to organize and prioritize content on your site, which is crucial for retaining visitor interest and improving the user experience.

Front-End Sorting: A Significant Update

With the recent update to the Advanced Post Types Order plugin, any sort type can now be managed directly through the front end. This feature is especially valuable for sites where users are restricted from accessing the admin interface. The sorting capability is available through a simple WordPress shortcode, which can be added to any page, post, or custom post type.

Example Shortcode Usage

To implement front-end sorting, use the following shortcode format:

Example
[apto_reorder sort_id="82"]

Attributes

  • sort_id (required): This attribute specifies the sort list ID for which the interface will be generated.

Example
[apto_reorder sort_id="82"]

  • hide_archive: When set to true, this attribute hides the Archive sort type from the interface, displaying only the taxonomies for reordering.

Example
[apto_reorder sort_id="82" hide_archive="true"]
The interface will look like this:

front-end-sort-of-custom-post-type-single-taxonomy-term

 

  • capability: This attribute defines the user capability required to access the sort interface. If the user role does not have the specified capability, the sort interface will not be displayed.

Example
[apto_reorder sort_id="82" capability="edit_pages"]
In this example, only users with the capability to edit pages (e.g., Editors and Administrators) will be able to access the sort interface. For more details on WordPress user roles and capabilities, refer to the Roles and Capabilities documentation.

Manual and Automatic Sorting Options

Similar to the admin interface, the front-end sort feature provides both manual and automatic sorting options. Users can manually drag and drop items to reorder them, or choose automatic sorting based on various criteria such as ID, name, random order, date, or custom fields.

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

 

By utilizing the front-end sorting feature of the Advanced Post Types Order plugin, you can enhance the content management experience for your users, streamline the process of reordering items, and ensure that your site’s most important content is always displayed prominently.