Articles

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 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’ […]

Use Pre-Generated Licence Keys with WooCommerce Software License

Starting version 1.2 (6-October-2015) the WooCommerce Software License plugin got a new enhancement, the ability to use existing keys (own admin keys) along the plugin code. If you are a re-seller this become the great tool for selling keys and software. All existing functionality like allowed client keys, instances per key etc, can still apply. […]