| 开发者 |
satishnavjivan1
satishnavjivan |
|---|---|
| 更新时间 | 2026年11月15日 12:13 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.7 |
| 版权: | GPLv2 |
| 版权网址: | 版权信息 |
WP_Query loops using simple meta_key parameters.flexible-custom-post-type-order folder to your /wp-content/plugins/ directory (or install via Plugins > Add New in WordPress Admin).Once activated, go to Settings > Multiple Post Types Order and enable ordering for your desired post types. Then navigate to that post type's admin menu (e.g., Posts, Pages, Products) and click on the MPT Order link. You can simply drag and drop the items into your desired position and click "Save Order".
Yes! This is the main highlight of Flexible Custom Post Type Order. You can configure multiple order sets (Order 1, Order 2, etc.) and apply different sorting to different sections of your website.
Yes. It fully supports hierarchical post types like Pages or hierarchical custom post types. When you reorder a parent post, its child posts move along with it, and you can also reorder child posts individually.
Simply add 'orderby' => 'meta_value_num' and 'meta_key' => 'fcpto_order_1' (or your corresponding order number) to your WP_Query parameters. The plugin also provides pre-generated query code right inside the admin screen for quick copying.
Yes. You can reorder WooCommerce products and custom shop items just like standard WordPress posts.
If your front-end order does not reflect the admin sorting immediately, go to the re-ordering screen, click "Reset Order", arrange the items again, and click "Save Order".
The plugin keeps your default queries safe and gives you complete control over where and when your custom orders are applied via WP_Query.