﻿=== Flexible Custom Post Type Order ===
Contributors: satishnavjivan1, satishnavjivan
Donate link: 
Tags: multiple post types order, Flexible Custom post types, Flexible Custom post types ordering, posts order, sort
Requires at least: 6.2
Tested up to: 6.9
Stable tag: 1.1.3
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create multiple re-ordering interfaces for any post type and manage custom post order flexibly and easily.

== Description ==

This plugin helps to generate multiple re-ordering interface for your post types...

= Example Display Query Code: =
`&lt;?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',   
					)); ?>
<?php while ( $data->have_posts() ) : $data->the_post(); ?>
<?php the_title(); ?>
<?php endwhile;?>
<?php wp_reset_query(); ?&gt;`

= Plugin Advantages =

1. Any Post Types multiple times Re-Order
2. Supports Hierarchical Post Types Re-Order for Both - Parent & Child Posts
3. Supports individual child posts re-ordering from any parent post

= NOTE =

If desired results are not displaying on front-end after setting up re-ordering in admin, please click "Reset Order" once and set re-ordering again. This will solve your issue.

We have this plugin compatible gutenberg.

== Installation ==

1. Upload `multiple-post-types-order` folder to your `/wp-content/plugins/` directory.
2. Activate the plugin from Admin > Plugins menu.
3. Once activated you should check with Settings > Multiple Post Types Order
4. Use MPT Order # link which appear into each post types section to re-order.

== Frequently Asked Questions ==

= Where can I find the settings configuration? =

It is under Settings > Multiple Post Types Order.

= How to apply the custom re-ordering on queries using only parameter =

Include a 'orderby' => 'meta_value_num', 'meta_key' => 'custom_order_type_snv_#' parameter within your custom query.

= How to apply the custom re-ordering on queries using query code =

Check query code example below:
`&lt;?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',   
					)); ?>
<?php while ( $data->have_posts() ) : $data->the_post(); ?>
<?php the_title(); ?>
<?php endwhile;?>
<?php wp_reset_query(); ?&gt;`

= Can I also re-order multiple child posts from within the parent post? =

Yes. When re-ordering any parent post will automatically re-orders its child posts with them after clicking "Save Order" button. Apart from this, you can also re-order child posts within in the same parent post.

= My desired result is not displaying after re-ordering in Admin. =

If desired results are not displaying on front-end after setting up re-ordering in admin, please click "Reset Order" once and set re-ordering again. This will solve your issue.

= What if some of my old posts/pages/CPT's are not displaying in MPTO Order options? =

If previously or older posts/pages/cpts are not displaying then simply save/update it again.

== Screenshots == 

1. Multiple Post Type Order General Settings
2. Drag and Drop Re-Ordering interface
3. Re-Ordering interface with Display Query Code