News

Use a simple sort along with complex queries

Advanced Post Types Order Simple Sort is an easy way to maintain order for different queries/sections (e.g. archive, taxonomies) within a single interface. As opposite an Advanced Sort can match a single query but which include a mix of posts, taxonomies, meta data and other parameters. This is a powerful tool which allow to match a sort virtually for any WordPress Queries, however it require specific sort settings to match exactly the front site query parameters. For that reason it can get a bit hard to manage for dynamic section which use a large number of complex queries.
(more…)

Hide and increase Security for your WordPress website

Say Hello to WP Hide & Security Enhancer a brand new plugin which provide an easy way to completely hide your WordPress core files, theme and plugins path from being show on front side. This is a huge improvement over Site Security, no one will know you actually run a WordPress. Provide a simple way to clean up html by removing all WordPress fingerprints.
(more…)

Add WooCommerce Shop Manager custom role for Advanced Post Types Order sorts

As described at Filter – Add Custom Role / Modify exiting – Minimum capability to use this plugin custom role can be append to existing list. This is not something to be included automatically, as custom roles rely on capabilities, so it need one to selected. (more…)

Default sort list for every new Site in your WordPress MultiSite environment

WordPress MultiSite environment is a great way to create a network of sites, easily managed from a common dashboard. The Advanced Post Types Order plugin is fully compatible with MultiSite set-up, it can be activated either on punctual site or network wide. (more…)

Customize sorting for products within a customer Order

Within a WooCommerce buyer Order, the products are being sorted / displayed in the way they where placed in the cart. Unfortunate WooCommerce does not provide any support through which such sorting can be changed.

woocommerce-sort-products-within-customer-order
(more…)

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 rushed eye.

Advanced Post Types Order plugin provide excellent tools to manage everything when it come to content sorting, moving things around is a breeze job, re-ordering can be achievable through provided intuitive visual interfaces.
(more…)

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 is positioned under the Sort Settings area, it may be a bit annoying to keep scroll down the page until that section. A nice functionality is the possibility to collapse / expand the settings area making the actual sort interface visible right from the page load.
(more…)

Ignore sort apply for certain query on Post Types Order

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 either using the ignore_custom_sort argument within the query , or by using a filter pto/posts_orderby which can be placed within any code, preferable on theme functions.php

Example
The following code ignore the sort apply for any query which include ‘reports’ post type

	add_filter('pto/posts_orderby', 'theme_pto_posts_orderby', 10, 2);
    function theme_pto_posts_orderby($orderBy, $query)
       {
           if( (! is_array($query->query_vars['post_type']) && $query->query_vars['post_type'] = 'reports') || 
                   (is_array($query->query_vars)   &&  in_array('reports', $query->query_vars)))
                   return FALSE;
           
           
           return $orderBy;
       }

Apply post type Archive order for all taxonomies / categories

The Advanced Post Types Order plugin is very flexible in functionality. In certain situations, individual sort for each taxonomy terms (categories) is not required, but instead Archive order is needed to apply on all other sections.

The following example return the archive order for any query that match the post type array. The apto_query_match_sort_id filter is being used:
(more…)

Synchronize an Advanced Post Types Order sort list across all languages along with WPML

During recent year, WPML becomed the best plugin to help translating any site into a multilingual. It featured lots of options and functionality which help with pretty much everything related to languages and translations. (more…)

Page 1 of 512345