Linux 软件免费装
Banner图

Multiple Post Type Order

开发者 e2msolutions
satish29
satishnavjivan
更新时间 2024年4月20日 10:27
PHP版本: 5.3.2 及以上
WordPress版本: 6.2.2
版权: GPLv2
版权网址: 版权信息

标签

posts order sort post type order posts sort custom order admin posts order multiple post types order multiple custom post types multiple custom post types ordering mutliple post sort

下载

1.0.0 1.1.0 1.9.0 1.4.0 1.5.0 1.2.0 1.3.0 1.6.0 1.7.0 1.8.0

详情介绍:

This plugin helps to generate multiple re-ordering interface for your post types as well as custom post types as many times as you required for your custom development. With such a custom ordering facility, it will be much faster and easier for the crawlers to generate multiple ordering for same post types as well as individual post types. This plugin development aims to get solutions when you want to display custom ordering for one post-type i.e. HomePage AND custom ordering for same post-type i.e. on Custom Post Page with the help of query code in your custom templates. In order to configure settings, navigate to [ Wordpress Admin -> Settings -> Multiple Post Types Order ], where you can see two options:
  1. Show/Hide Re-Ordering Interface for Post Types
  2. No of times Re-Ordering required
After configuring your settings, "MPT Order #" will be displayed on your desired post types and under it, you can drag and drop Re-Order by your Post Titles, hit 'Save' and click on Display Query Code. You can use this Query code in your custom templates and customize look-n-feel and your desired result will be displayed. 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(); ?> [mpto post_type='post' meta_key='custom_order_type_snv_1'] OR [mpto post_type='post' meta_key='custom_order_type_snv_1' posts_per_page='10' limit='250' readmore='Readmore' style='style11' google_font='Roboto' item_width='300' item_height='300' des_size='10' title_size='18' it_margin='2' title_color='#ffffff' des_color='#ffffff'] ### Shortcode Builder ### 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. ### When and how to use MPTO shortcode? You can use below mentioned shortcode in order to display any pages or posts or CPT’s listings with amazing display effects for Title, Featured Image, Content with Pagination. You can also customize your display options with additional shortcode parameters as shown below. Example display shortcode [mpto post_type='post' meta_key='custom_order_type_snv_1'] OR [mpto post_type='post' meta_key='custom_order_type_snv_1' posts_per_page='10' limit='250' readmore='Readmore' style='style11' google_font='Roboto' item_width='300' item_height='300' des_size='10' title_size='18' it_margin='2' title_color='#ffffff' des_color='#ffffff'] This shortcode will also available when saving on MTPO Order options. You can change desired values for posts_per_page, character limit and custom label for readmore button. ### 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. == Changelog == 1.0 1.1 1.2 1.3 1.7 Make sure you get the latest version. == Screenshots ==
  1. Multiple Post Type Order General Settings
  2. Drag and Drop Re-Ordering interface
  3. Re-Ordering interface with Display Query Code
  4. Listing display with hover effects