Linux 软件免费装
Banner图

Sticky CPT

开发者 whodunitagency
leprincenoir
更新时间 2020年3月19日 23:54
PHP版本: 3.5 及以上
WordPress版本: 5.3.2
版权: GPLv2 or later
版权网址: 版权信息

标签

forward cpt sticky push highlighting

下载

1.0.0 1.0.1 2.0.0

详情介绍:

The plugin allows to highlight the CPT in the same way as would the WordPress core functionality for posts. You can highlight new content created for your CPT. It is also possible to highlight the content quickly thanks to bulk actions. Start example $args = array( 'post_type' => ['project'], 'post_status' => 'publish', 'posts_per_page' => -1, 'post__in' => get_option( 'sticky_posts' ) ); $stickyProject = new WP_Query( $args ); Hook available add_filter( 'sticky_cpt_add_cpt' , 'add_cpt' ); function add_cpt( $post_types ) { $post_types['newcpt'] = 'newcpt'; return $post_types; }

安装:

  1. Upload the plugin files to the /wp-content/plugins/sticky-cpt directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • Highlighted in an article
  • list items with Sticky

更新日志:

1.0.1 1.0.0