News

Customizing custom post objects order using multiple items selection with drag & drop functionality

Moving around hundred or thousand of post items within a sort interface is no longer a time consuming operation. Starting version 3.7.4 the Advanced Post Types Order plugin got a new core functionality, a multiple item selection for a drag and drop process. (more…)

Taxonomy Terms Order and Auto Sort, Admin Sort description an usage

The Taxonomy Terms Order plugin is an easy way to control the sort for any taxonomies.  The order is applied to the front side using the arguments:

‘orderby’ => ‘term_order’,

Example:


$argv = array(	 	 
		'orderby' => 'term_order' 	 
		);	 	 
get_terms('category', $argv);

 

 

Autosort OFF
No query sort will be changed, the terms will appear in the original order, per orderby argument. To retrieve the terms in the customised order you must use the term_order on the orderby parameter:


$argv = array(	 	 
		'orderby' => 'term_order',	 	 
		'hide_empty' => false	 	 
		);	 	 
get_terms('category', $argv);

See more info on the get_terms usage here

Autosort ON
The queries will be updated, all terms will appear in the order you manually defined. This is recommended if you don’t want to change any theme code to apply the terms order

 

Admin Sort
The code queries will be updated within the admin interface, the sort will also apply on this area too.

How to use the AutoSort setting for Advanced Taxonomy Terms Order

The Advanced Taxonomy Terms Order include a great functionality, the AutoSort. This helps to auto-apply the customized sorting to front side, or allow a manual apply through code.
There are 2 modes for this option, On and OFF.

ON
The query will be updated (unless you manually change that from a specific Taxonomy Order menu), any orderby parameter will be changed to term_order. Practically all queries will be forced to use the new order. This is recommended if you don’t want to change any theme code to apply the terms order.

OFF
The query will not be touched (unless you manually change that from a specific Taxonomy Order menu), all terms will be retrieved in the same order as before. To retrieve the terms per customized sorting, you must use the term_order on the orderby parameter::

$argv = array(
                'orderby'       =>  'term_order',
                'hide_empty'    => false
                );
get_terms('category', $argv);

More info on the get_terms usage can be found at http://codex.wordpress.org/Function_Reference/get_terms

Randomize a sort every two hours, or a custom defined interval

Creating randomize sort never been easier, custom intervals can be set to whatever time-frame ins need. The sort will random the posts or any custom post types order. (more…)

Applying automatic order for a sort through a user function callback

Starting version 3.5.2 a new functionality has been implemented, Through a callback user function certain order can apply to a sort. This is run automatically on sort match, meaning no manual order maintenance is required. This is useful when no manual sort intend to be used due to complexity or maintenance requirement time, on automatic order fallback, a sort which can’t be achieved through existing interface functionality, etc

advanced-post-types-order-automatic-user-callback-function (more…)

Apply custom sorting for Next / Previous site-wide navigation

A sort will apply to all next / previous side-wide navigation links if the Next / Previous Apply option is turned on. In case this need to apply only when certain conditions are fulfilled .
The follogin filter can be used ‘apto/navigation_sort_apply’

     add_filter('apto/navigation_sort_apply', 'theme_apto_navigation_sort_apply');
    function theme_apto_navigation_sort_apply($current)
        {
            global $post;
            
            if($post->post_type == 'post')
                $current    =   TRUE;
                else
                $current    =   FALSE;
            
            return $current;   
        }

The above will makes the code to apply the customized sort on navigation links only if post type is a Post.

*This replaced the old cpto/navigation_sort_apply

Customise order for WPML content with Advanced Post Types Order

The most versatile and flexible WordPress plugin which turn your website into a multilingual ready, called WPML become a unique piece of code which is a must have. those days. Easy to use, intuitive to navigate, publish and you are ready to go multilingual.

Recently many WordPress themes and plugins had designed for WPML compatibly, our plugin does the same and received a officially Certificate of Compatibility

Advanced-Post-Types-Order-Plugin-certificate-of-WPML-compatibility

(more…)

Advanced Post Types Order – Documentation and Usage

Documentation and Usage for Advanced Post Type Order plugin regarding installation, sort lists creation, sort settings, simple / complex sort types, manual / automatic order type, sort conditionals.
This section is constantly updated as new features are included in the plugin

WooCommerce – Sort Grouped Products, Easily manage Grouped Products

woo-commerce-logo

Grouped Products is a nice feature for WooCommerce through which certain products are grouped together and show on the parent product holder. (more…)

WordPress E-Commerce Software License Management integration with older WP E-commerce

Older version of WordPress E-Commerce (lower than 3.8.10) will require a small template update to allow the front interface to update. The file which need update is called wpsc-user-log.php and is located within your theme folder. If you can’t find it, this need to be moved through Store interface. Proceed at Settings > Store > Presentation and select the file in the list (more…)