Linux 软件免费装
Banner图

Flexible Custom Post Type Order

开发者 satishnavjivan1
satishnavjivan
更新时间 2025年7月16日 22:08
PHP版本: 6.2 及以上
WordPress版本: 6.8.2
版权: GPLv2
版权网址: 版权信息

标签

posts order sort multiple post types order Flexible Custom post types Flexible Custom post types ordering

下载

1.1.0

详情介绍:

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 ==
  1. Multiple Post Type Order General Settings
  2. Drag and Drop Re-Ordering interface
  3. Re-Ordering interface with Display Query Code