This plugin helps to generate multiple re-ordering interface for your post types...
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(); ?>
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:
`<?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(); ?>
<?php wp_reset_query(); ?>`
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 ==
- Multiple Post Type Order General Settings
- Drag and Drop Re-Ordering interface
- Re-Ordering interface with Display Query Code