Linux 软件免费装
Banner图

Intuitive Custom Post Order

开发者 hijiri
更新时间 2023年12月21日 09:53
捐献地址: 去捐款
PHP版本: 3.5.0 及以上
WordPress版本: 6.4.2
版权: GPLv2 or later
版权网址: 版权信息

标签

post order posts order custom post type order order posts custom taxonomy order order post

下载

2.0.0 2.0.1 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.2.1 3.1.4 3.0.8 1.1.0 3.1.5.1 1.2.1 2.0.4 3.1.3 3.1.4.1 3.1.5

详情介绍:

Select sortable items from 'Intuitive CPO' menu of Setting menu in WordPress. Intuitively, order items( Posts, Pages, Custom Post Types, Custom Taxonomies, Sites ) using a drag and drop sortable JavaScript. Use parameters( orderby = menu_order, order = ASC ) in your theme. You can also override the auto-converted parameters( orderby and order ). ATTENTION: Only if you use 'get_posts()' to re-overwrite to the default order( orderby = date, order = DESC ), You need to use own custom parameter 'orderby = default_date'. This Plugin published on GitHub.

安装:

  1. Upload 'intuitive-custom-post-order' folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Select sortable items from 'Intuitive CPO' menu of Setting menu in WordPress.

屏幕截图:

  • Reorder Posts
  • Reorder Taxonomies
  • ( for Multisite ) Network Settings
  • ( for Multisite ) Reorder Sites

升级注意事项:

3.0.3 Expand Database Table: wp_terms.

常见问题:

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 ` 'ID', 'order' => 'DESC', ) ) ?> ` get_posts() ` 'title', ) ) ?> ` ATTENTION: Only if you use 'get_posts()' to re-overwrite to the default order( orderby=date, order=DESC ), You need to use own custom parameter 'orderby=default_date'. ` 'default_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' ) ); ?> `

How to move post of second page in top of first page.

Go to "screen options" and change "Number of items per page:".

更新日志:

3.1.5 3.1.4.1 3.1.4 3.1.3 3.1.2.1 3.1.2 3.1.1 3.1.0 3.0.8 3.0.7 3.0.6 3.0.5 3.0.4 3.0.3 3.0.1 & 3.0.2 3.0.0 2.1.0 2.0.9 2.0.8 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.0 1.2.1 1.2.0 1.1.1 1.1.0 1.0.0 Initial Release