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

Remove slug from custom post type

Description

In WordPress 2.9 custom post type was introduced, that opened a new world for many WordPress developers.
When it comes to removing the slug and not destroying the rewrite rules for other post types this plugin works great.
This only concerns those who are using %postname% as permalink structure and want to add a custom post type so that
the urls for them are in the same way as normal posts and pages: http://siteurl/%custom_post_type_title%/.

Find more useful tips and plugins: Ultimate web tips

Installation

  1. Upload remove-slug-custom-post-type folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

Which permalink structure do I need to have for this to work?

This only works if permalink structure is “/%postname%/

Reviews

2016年9月3日
Just install it and it will automatically remove the custom post slug from the post urls. Lovely <8
2016年9月3日
It works OK, but when I uninstalled it broked my site (404 or redirect errors). I had to reset my htaccess file to make things work again.
阅读所有的21评价

Contributors & Developers

“Remove slug from custom post type” 是开源软件。 以下人员对此插件做出了贡献。

Contributors

更新日志

1.0.3

  • Permalink regex fixed
  • Suffix feature added

1.0.2

  • Permalink bug fixed

1.0

  • Released