News

Creating custom format for licence keys on WooCommerce Software License plugin

To create a custom licence key, the woo_sl/generate_license_key filter can be used. This send along 4 arguments:

  • $license_key
  • $order_id
  • $order_item_id
  • $license_group_id

(more…)

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. Also multiple Licensing groups can be created allowing mix of pre-generated with automated keys to be bundled toughener.

(more…)

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, and 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

When using the AutoSort, you can still disable specific queries to use the customised order by add the ignore_term_order argument:

$argv = array(	 	 
		'ignore_term_order' => TRUE	 
		);	 	 
get_terms('category', $argv);

 

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