该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Custom Post Type Lockdown WordPress

描述

Often times you use custom post types as bits of content but don’t want people to view them individually, outside their context, or search for them. This plugin does just that, allowing you to choose to redirect people to a different page, and even overwrite search results, on a granular, per-post basis.

This is useful, for example, if you have Staff as your custom post type, for example, but don’t want anyone visiting the single of that staff and instead want them going to a staff overview page.

Three options:
1. Checking “Prevent” next to a custom post type will not allow any single views of that type, and will redirect viewers to another page of your site.
2. Selecting the redirect page will redirect viewers of that single to this page – by default they will be redirected home.
3. Selecting a search overwrite page will replace that custom post type’s results on the search page with your desired page; it will overwrite the permalink and the excerpt.

安装

  1. Upload CPTLockdown.php or the ‘CPTLockdown’ directory to your ‘/wp-content/plugins/’ directory
  2. Activate the Custom Post Down Lockdown plugin through the ‘Plugins’ page in WordPress
  3. Navigate to “Tools” -> “CPTLockdown” in your WordPress admin backend to use.

评价

此插件暂无评价。

贡献者及开发者

“Custom Post Type Lockdown WordPress” 是开源软件。 以下人员对此插件做出了贡献。

贡献者