Description
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',
)); ?>
<?php while ( $data->have_posts() ) : $data->the_post(); ?>
<?php the_title(); ?>
<?php endwhile;?>
<?php wp_reset_query(); ?>
Plugin Advantages
- Any Post Types multiple times Re-Order
- Supports Hierarchical Post Types Re-Order for Both — Parent & Child Posts
- 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.
Screenshots
Installation
- Upload
multiple-post-types-orderfolder to your/wp-content/plugins/directory. - Activate the plugin from Admin > Plugins menu.
- Once activated you should check with Settings > Multiple Post Types Order
- Use MPT Order # link which appear into each post types section to re-order.
FAQ
-
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.
Reviews
Contributors & Developers
“Flexible Custom Post Type Order” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Flexible Custom Post Type Order” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



