Tags

Retrieve posts per customised order through JSON REST API

The JSON REST API service, fully implemented into WordPress since 4.7, provides a great way for other applications to connect. This is a huge step forward, as it can communicate and exchange data regardless of what languages an external program uses.

Customizing sort through default post type archive interface

Customizing the sort for a site content is the key to improve SEO ratting and keep you in business. Any new visitor will navigate your page just a bit before leave for another site, if not find quality information. Placing the best products and articles in the relevant spots is the way to catch a […]

Apply Archive Order to Taxonomies Terms / Categories, if no custom order is defined

When migrating from free Post Types Order, on activation. the Advanced Post Types plugin automatically import the previously customized order. This is saved within Archive area, since this is the type of sorting the free code is capable off. The other areas as taxonomies terms like categories, inherit default sorting by date as there’s never […]

How to apply WooCommerce category order while using visual attributes filtering

Sorting WooCommerce products is an easy job, specific area ordering is possible after selecting the appropriate taxonomy or attribute.  When using mix of multiple taxonomies or/and attributes a sort is still easy to create through advanced set-up Sometimes, there’s no need to apply a very specific order for all those areas, as it become impractical […]

How to retrieve the sticky posts for a sort

The default WordPress Sticky functionality is very limited. It allows to put a post on top of the list which is pretty much everything about it. Beside other missing functionality, there is no control over order, making the list totally uncontrollable.

Sort post objects assigned to a taxonomy terms but not it’s children

Per WordPress Codex when creating a custom query, and request objects which belong to a specific term, direct assigned objects will be included. Also all other objects which belong to child terms related to queried term will be returned too. This is the default behavior observed within WordPress dashboard, when filter for a specific category, […]

How to randomize the first 10 posts in a manually sorted list

The first step will be to create a sort which match a specif area of the site. Any sort type can be used either simple sort or mix of taxonomies and post types.

Update the sorts when changing the site default language

To allow sorting for different languages through custom plugins like WPML the plugin implemented a custom functionality which also save the sort language. The feature becomes active right after plugin activation, even if there’s no multilingual code active yet to preserve sorts compatibility for later usage.

Add numbers to items within the sort list interface

The Advanced Post Types Order plugin is based on jQuery Sortable UI to implement the drag & drop interface. As default this use the Unordered List tag (ul). For better control, some users might find easier to see ordered list (ol) instead which output numbers for each item in the list, accordingly to position in […]

How to copy an order list from a category to another

Customizing order of posts within categories is an easy task through Advanced Post Types Order plugin. The self explanatory interface featuring a drag & drop functionality makes sorting a breeze.