這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Remove slug from custom post type

描述

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

安裝

  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%/

評價

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個評價

貢獻者及開發者

“Remove slug from custom post type” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

1.0.3

  • Permalink regex fixed
  • Suffix feature added

1.0.2

  • Permalink bug fixed

1.0

  • Released