Articles

How to expand / narrow a sort settings within admin interface

The Advanced Post Types Order plugin include quite many options to cover up all possible scenarios. For that reason the sort settings admin interface it’s long, depending on monitor resolution it may not fit within a full screen size so the scroll need to be used to access all options. Since the actual sorting interface […]

Ignore sort apply for certain query on Post Types Order

This replaced the deprecated filter pto/posts_orderby The free WordPress plugin Post Types Order is already a “must have” code on any website. Control any post sorting through a nice and easy to use interface. When Autosort is ON, the sorting is applied to all queries that match the post type. It can be forced by […]

Apply post type Archive order to all taxonomies / categories

The Advanced Post Types Order plugin is an incredibly powerful tool that allows WordPress users to easily sort their posts, pages, custom post types, and WooCommerce products. It’s a fantastic way to organize content on your website, but did you know that the plugin is also incredibly flexible in terms of its functionality? In certain […]

Hide Sort Settings interface for certain administrator role users

The Sort Settings interface is available by default only to administrator role users. There are situations when sort settings need to be available only for certain users. The apto/wp-admin/reorder-interface/view-settings-capability filter help on that matter. The following example hide the sort settings interface if logged-in user is not ID 1 or 2 or 3. This can […]

Automatic Sort for all new future created categories

Sorting post types within Taxonomies Terms become an easy task through Advanced Post Types Order plugin. Further more the Automatic Sort functionality put the code on work and make the sort for you per predefined criteria https://www.nsp-code.com/advanced-post-types-order-description-and-usage/manual-automatic-sorting-type-usage/ The Automatic Sort is an efficient way to improve site management productivity by reduce redundant sort actions. It […]

Autosort a Category by posts Featured Image Title

The Automatic Order functionality along with Custom Function it’s a very powerful tool to customize the sort of a give area by very specific criteria. As specified at https://www.nsp-code.com/applying-automatic-order-for-a-sort-through-a-user-function-callback/ the filter return a list of all posts within the section / query on which different operations can apply.

Applying multiple order criteria for Automatic Order through Fallback functionality

The Advanced Post Types Order plugin for WordPress is a powerful tool that allows users to automatically sort lists of objects, such as post types, categories, and taxonomies, on the front end of a website. This is done through the Automatic Order functionality, which ensures that content is dynamically organized according to predefined criteria without […]

Applying a different capability for Administrator when using Advanced Post Types Order

By default the Advanced Post Types Order plugin use the ‘switch_themes’ capability for Administrator role. There are situations when this capability is not available or is been removed or relocated for another role, meaning administrators are not able to see or change a sort. The following code show how to change the ‘switch_themes’ to ‘activate_plugins’ […]