Remove CPT base

説明

Remove custom post type base slug from url

  • possibility to select specific custom post type(s)
  • auto redirect old slugs to no-base slugs

インストール

  1. Upload remove-cpt-base directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

評価

2020年8月3日
Spent numerous hours searching google for a solution on how to remove a Custom Post Type slug from the url. Most threads were talking about very complex htaccess editing or functions.php code additions. Stumbled across this plugin and it worked right away. Thank you!
2020年7月2日
Работает с дочерними страницами произвольного типа записи.
2020年4月3日
This plugin is whats was missing in CPT UI and permalink, it does one thing and does it very well! Thank you to the developer for his assistance and wonderful support!
2019年10月21日
amazing tweak plugin. this thing is very hard and messy to do manually. plugin totally works as it says.
2019年10月20日
I've tested all the solutions posted in every forum you could imagine, but every one of them was incomplete somehow, until I hopelessly came across this plugin and found what I was looking for. Thanks a lot!
11件のレビューをすべて表示

貢献者と開発者

Remove CPT base はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Remove CPT base” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

5.4

  • enable previews for CPTs without base

5.3

  • make it works with WPML
  • make it works with Polylang
  • make it works with Custom Post Type Permalinks plugin

5.2

  • tested on WP 5.4

5.1

  • removed auto-prevent slug duplicates
  • removed debug mode
  • removed remove_cpt_base_skip filter
  • use default WP function instead of custom
  • make it works for custom rewrite slugs
  • prioritize page and post like WP does

5.0

  • YOU HAVE TO SAVE YOUR SETTINGS AGAIN, because:
  • added alternation option for each post type separately
  • added debug mode

4.8

  • fix alternative CPT children solving for nested children

4.7

  • alternative CPT children solving

4.6

  • fix server port redirect

4.5

  • make it works for WP installations in directory

4.4

  • minor changes

4.3

  • fix for some endpoints and make sure post is not interpreted as attachment

4.2

  • fix for hierarchical CPTs on some servers

4.1

  • make it works for posts interpreted like category by WP

4.0

  • tested on WP 5.2
  • make it works for hierarchical post types and different permalink structures
  • going back to ‘pre_get_posts’
  • optimize generating slug for duplicate names

3.3

  • change HTTP code from 404 to 200

3.2

  • fix for query strings

3.1

  • add custom endpoint rewrites support

3.0

  • stop using complicated ‘pre_get_posts’ and handle 404 instead

2.3

  • tested on WP 5.0

2.2

  • fix 404

2.1

  • fix redirect loop in WPML and WooCommerce

2.0

  • stop using .htaccess rules

1.2

  • auto init after permalinks updated

1.1

  • add uninstall hook
  • add duplicate slug check
  • minor updates

1.0

  • First version