Linux 软件免费装
Banner图

WP Sort Order

开发者 fahadmahmood
kiranzehra
invoicepress
更新时间 2024年10月30日 07:11
PHP版本: 7.0 及以上
WordPress版本: 6.6
版权: GPL2
版权网址: 版权信息

标签

post order taxonomy order user order plugins order

下载

1.2.5 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.9 1.3.4 1.3.0 1.3.2 1.3.3 1.1.1 1.1.2 1.1.3 1.1.5 1.1.6 1.1.7 1.1.8 1.0 1.1.4 1.1.0 1.2.6 1.2.7 1.2.8 1.3.1

详情介绍:

Order terms (Users, Posts, Pages, Custom Post Types and Custom Taxonomies) using a Drag and Drop with jQuery ui Sortable. Select sortable items from 'WP Sort Order' menu of Setting menu in WordPress. In addition, You can re-override the parameters of 'orderby' and 'order', by using the 'WP_Query' or 'pre_get_posts' or 'query_posts()'. The 'get_posts()' is excluded. At a glance by WordPress Mechanic: [youtube http://www.youtube.com/watch?v=4ZiHUSBDJwY]

安装:

  1. Upload 'wp-sort-order' folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Select sortable items from 'WP Sort Order' menu of Setting menu in WordPress.

屏幕截图:

  • Settings Page
  • Installation & Activation
  • Settings Page - Full

升级注意事项:

1.3.4 Fix: When enabling the order of the posts, it does not allow me to create new ones and the only way to create new ones was duplicating a previous post. 1.3.3 Fix: PHP Notice: Function is_home was called incorrectly. 1.3.2 Updated version with the improved security checks. 1.3.1 Updated version for WordPress. 1.3.0 Fix: WP Sort Order was messing with posts date/order. 1.2.9 Fix: Categories sort order keeps reverting. 1.2.8 Compatibility added for Stock Locations for WooCommerce. 1.2.7 Ordering not working for taxonomies - undefined offset fixed in hooks.php file. 1.2.6 Bootstrap and Fontawesome libraries are updated. 1.2.5 Updated version for WordPress. 1.2.4 On activation it was taking up some space at the header of the website pages - Fixed. 1.2.3 Updated assets. 1.2.2 New post menu_order implemented with 6 layers check. 1.2.1 New post menu_order and page refresh issue resolved. 1.2.0 get_current_screen() used. 1.1.9 Languages added. 1.1.8 User sort order refined for decimals. 1.1.7 Table prefix issue has been fixed. 1.1.6 User sort order refined. 1.1.4 Sanitized input and fixed direct file access issues. 1.1.3 Plugins can be sorted as well. 1.1.1 A few improvements related to WordPress 4.6. 1.1.0 A few improvements related to WordPress 4.5.0.

常见问题:

How does it work with custom taxonomies and custom post types?

[youtube http://www.youtube.com/watch?v=-pLHSAALbGw]

How does it work with WordPress Categories?

[youtube http://www.youtube.com/watch?v=EKkf_54kUVU]

How to enable sorting for posts/pages and taxonomies with this plugin?

On settings page you can select posts/pages and taxonomies to enable sorting.

Can users be sorted with this plugin?

Yes, you can sort. And there is a shortcode to list users under taxonomy, terms and children. [WPSO_USERS slug="taxonomy or term slug" id="taxonomy or term id"]. This shortcode will list users on front-end with your sorted order. No need to write another query for it.

How to re-override the parameters of 'orderby' and 'order'

Sub query By using the 'WP_Query', you can re-override the parameters.

  • WP_Query
` 'date', 'order' => 'DESC', ) ) ?> ` Main query By using the 'pre_get_posts' action hook or 'query_posts()', you can re-override the parameters.
  • pre_get_posts
function my_filter( $query ) { if ( is_admin() || !$query->is_main_query() ) return; if ( is_home() ) { $query->set( 'orderby', 'date' ); $query->set( 'order', 'DESC' ); return; } } add_action( 'pre_get_posts', 'my_filter' );
  • query_posts()
` 'rand' ) ); ?> `

更新日志:

1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.9 1.2.8 1.2.7 1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.9 1.1.8 1.1.7 1.1.6 1.1.4 1.1.3 1.1.1 1.1.0