=== Multiple Post Type Order === Contributors: satish29,e2msolutions,satishnavjivan Donate link: Tags: multiple post types order, multiple custom post types, multiple custom post types ordering, posts order, sort, mutliple post sort, posts sort, post type order, custom order, admin posts order Requires at least: 5.3.2 Tested up to: 6.5.0 Stable tag: 5.0 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html Multiple Post Type Order plugin will generate multiple re-ordering interface for your same post types as well as individual custom post types as many times as you want. == Description == This plugin helps to generate multiple re-ordering interface for your post types as well as custom post types as many times as you required for your custom development. With such a custom ordering facility, it will be much faster and easier for the crawlers to generate multiple ordering for same post types as well as individual post types. This plugin development aims to get solutions when you want to display **custom ordering for one post-type i.e. HomePage** AND **custom ordering for same post-type i.e. on Custom Post Page** with the help of query code in your custom templates. In order to configure settings, navigate to **[ Wordpress Admin -> Settings -> Multiple Post Types Order ]**, where you can see two options: 1. Show/Hide Re-Ordering Interface for Post Types 2. No of times Re-Ordering required After configuring your settings, "MPT Order #" will be displayed on your desired post types and under it, you can drag and drop Re-Order by your Post Titles, hit 'Save' and click on **Display Query Code**. You can use this Query code in your custom templates and customize look-n-feel and your desired result will be displayed. = Example Display Query Code: = `<?php $data = new WP_Query( array( 'post_type' => 'post', 'post_status' => array( 'publish'), 'posts_per_page' => -1, 'orderby' => 'meta_value_num', 'meta_key' => 'custom_order_type_snv_1', 'order' => 'ASC', )); ?> have_posts() ) : $data->the_post(); ?> [mpto post_type='post' meta_key='custom_order_type_snv_1'] OR
[mpto post_type='post' meta_key='custom_order_type_snv_1' posts_per_page='10' limit='250' readmore='Readmore' style='style11' google_font='Roboto' item_width='300' item_height='300' des_size='10' title_size='18' it_margin='2' title_color='#ffffff' des_color='#ffffff']= Shortcode Builder =
post_type - Your list of post types given in query codemeta_key - Your meta key value given in query codeposts_per_page - Display number of lists per pagelimit - Character limit for excerpt or contentreadmore - Custom label for more text with linkstyle - You can choose amazing hover style effects from style1 to style22 google_font - You can add your desired google fonts by nameitem_width - Set your desired widthitem_height - Set your desired heightdes_size - Set your desired description font sizetitle_size - Set your desired title font sizeit_margin - Set custom right margin title_color - Set title color based on website colordes_color - Set description color based on website color[mpto post_type='post' meta_key='custom_order_type_snv_1']OR
[mpto post_type='post' meta_key='custom_order_type_snv_1' posts_per_page='10' limit='250' readmore='Readmore' style='style11' google_font='Roboto' item_width='300' item_height='300' des_size='10' title_size='18' it_margin='2' title_color='#ffffff' des_color='#ffffff']This shortcode will also available when saving on MTPO Order options. You can change desired values for posts_per_page, character limit and custom label for readmore button. = How to apply the custom re-ordering on queries using query code = Check query code example below: `<?php $data = new WP_Query( array( 'post_type' => 'post', 'post_status' => array( 'publish'), 'posts_per_page' => -1, 'orderby' => 'meta_value_num', 'meta_key' => 'custom_order_type_snv_1', 'order' => 'ASC', )); ?> have_posts() ) : $data->the_post(); ?>