News

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…)

WooCommerce – Sort Products which belong to multiple categories

woo-commerce-logo

Probably the best choice for e-commerce under a WordPress environment, WooCommerce deliver all the juice you need for a successfully e-commerce business.  WooCommerce is built using WordPress best practices both on the front and the back end. This results in an efficient, robust and intuitive plugin. (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

Sample code on how to apply the sort for Post Types Order plugin

The Post Types Order plugin is a great tool for sorting site content. It include the Autosort functionality, if turned on will auto-apply the customized order to all queries, there’s no need to modify any code. This makes it the ideal tool for people who don’t care about programming and just want an out-of-the-box tool.

Sort can also apply only to certain queries, the Autosort need to be turned OFF. The ‘orderby’ => ‘menu_order’ need to be included within custom query arguments.

$args = array(
              'post_type' => 'feature',
              'orderby'   => 'menu_order',
              'order'     => 'ASC'
            );
$my_query = new WP_Query($args);
while ($my_query->have_posts())
    {
        $my_query->the_post();
        (..your code..)          
    }

The sort can be reversed using the ‘order’ => ‘DESC

$args = array(
              'post_type' => 'feature',
              'orderby'   => 'menu_order',
              'order'     => 'DESC'
            );

When using Autosort, there is a filter pto/posts_orderby/ignore to ignore specific queries, more details at Ignore sort apply for certain query on Post Types Order

For advanced queries and sorts see the Advanced Post Types Order and it’s Documentation.

How to set Sticky posts using Advanced Post Types Order

Starting plugin version 3.1.5, Sticky functionality is a great way to optimize your website, by keeping content updated and most valuable information on top of other data.
Set Fixed Position (Sticky) for objects in the list so they will always show first. When publishing new posts, the sticky objects will stay in same position as defined.

advanced-post-types-order-admin-interface-sticky-interface

A sticky position is defined by a number, which will set the post as fixed position in the list.

advanced-post-types-order-admin-interface-sticky-interface-numbering

Conditionals and sort query rules can apply, for making a sort to match exact section of your site (i.e. front page, archive, search etc). This helps to promote (keep in same position) certain articles, posts, ads, general data which is important for SEO and Marketing campaigns. – See more at: https://www.nsp-code.com/premium-plugins/wordpress-plugins/advanced-post-types-order/

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

Sort WordPress custom post types through Front End

This will allow you to create custom sort lists through the Front End of your site.
This is a sample of how the sort interface will appear:
front-end-sort-of-custom-post-type

During the last years the WordPress become one of the best Content Management System, the features and a great interface, also the ease of usage makes the best environment for a serious website. There are certain functionality which is not available either planed to be implemented giving the complexity, the Advanced Post Types Order plugin got the content management a step further and fill a gap in the WordPress core by implementing the possibility to sort any custom post types. We all know how important is the data and texts positioning on front site, as this will make the difference of retain a visitor interest or make it go away. Time is an important aspect for everyone, so making the important things show first will be a huge benefit all.

Recently the Advanced Post Types Order got an important update, any sort type is now possible through front end. This is an important feature for those who do not allow users to access the admin interface. The feature is available in a form of WordPress shortcode which can be used within any page, post or any custom post type, like a regular shortocde.

(more…)

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…)