Custom Post Type Rewrite

説明

By default, there are no some permalinks of custom post type. The Custom Post Type Rewrite plugin adds permalink structure of custom post type. Following:

  • date-based
  • author-based
  • front

インストール

  1. Download and unzip files. Or install Custom Post Type Rewrite plugin using the WordPress plugin installer. In that case, skip 2.
  2. Upload “custom-post-type-rewrite” to the “/wp-content/plugins/” directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Save permalink structure and refresh permalinks through the ‘Settings > Permalinks’ menu in WordPress.
  5. Have fun!

IMPORTANT: By default, WordPress will not work the Custom Post Type Rewrite. You need to refresh permalinks.

Test Matrix

For operation compatibility between PHP version and WordPress version, see below Github Actions.

Contribution

Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.

If you would like to contribute, here are some notes and guidlines.

  • All development happens on the develop branch, so it is always the most up-to-date
  • The master branch only contains tagged releases
  • If you are going to be submitting a pull request, please submit your pull request to the develop branch
  • See about forking and pull requests

評価

2017年5月15日
I installed this plugin and activated it. There is no indication anything has changed and I have no other menu's/options for permalinks than I did before I installed it.
2016年9月3日
What more can you ask? Actually, I had to swap to this plugin because after migrating and updating my site, the update version of the Custom Post Type Permalinks by Toro_Unit stopped working as intended. It kept doubling the custom post type slug in the archive url. For example: [Link redacted]
2件のレビューをすべて表示

貢献者と開発者

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

貢献者

“Custom Post Type Rewrite” をあなたの言語に翻訳しましょう。

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

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

変更履歴

1.1.0

  • tested up to 5.7.0
  • separate a class into a class file
  • add test case
  • add sponsor link
  • add FUNDING.yml
  • add donate link
  • update wordpress-test-matrix
  • add GitHub actions for CI/CD, remove .travis.yml

1.0.4

  • fix rewrite_rule

1.0.3

  • fix indent and reformat with phpcs and phpcbf
  • add composer.json for test
  • add static code analysis config
  • change Requires at least from 3.4.1 to 3.8

1.0.2

  • fix add_rewrite_rule
  • fix date-based permalink structure
  • fix phpunit tests

1.0.1

  • refactoring
  • add phpunit and tests

1.0.0

  • Initial release