{"id":15632376,"url":"https://github.com/torounit/custom-post-type-permalinks","last_synced_at":"2025-05-15T16:05:38.206Z","repository":{"id":7608546,"uuid":"8966588","full_name":"torounit/custom-post-type-permalinks","owner":"torounit","description":"Edit the permalink of custom post type !","archived":false,"fork":false,"pushed_at":"2024-10-10T06:08:17.000Z","size":911,"stargazers_count":181,"open_issues_count":32,"forks_count":48,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-08T03:48:55.635Z","etag":null,"topics":["custom-post-types","permalink","wordpress-plugin"],"latest_commit_sha":null,"homepage":"http://wordpress.org/plugins/custom-post-type-permalinks/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torounit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"torounit"}},"created_at":"2013-03-23T06:12:40.000Z","updated_at":"2025-05-06T13:09:02.000Z","dependencies_parsed_at":"2024-08-23T09:24:39.685Z","dependency_job_id":"d25a8fc2-d9f3-4d86-993f-a5d8937a39e1","html_url":"https://github.com/torounit/custom-post-type-permalinks","commit_stats":{"total_commits":709,"total_committers":20,"mean_commits":35.45,"dds":"0.20169252468265164","last_synced_commit":"49f4a04a05e6d6f35d6ac1be486bd66e15d77d29"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torounit%2Fcustom-post-type-permalinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torounit%2Fcustom-post-type-permalinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torounit%2Fcustom-post-type-permalinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torounit%2Fcustom-post-type-permalinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torounit","download_url":"https://codeload.github.com/torounit/custom-post-type-permalinks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374427,"owners_count":22060611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-post-types","permalink","wordpress-plugin"],"created_at":"2024-10-03T10:43:51.025Z","updated_at":"2025-05-15T16:05:38.183Z","avatar_url":"https://github.com/torounit.png","language":"PHP","funding_links":["https://github.com/sponsors/torounit","https://www.paypal.me/torounit"],"categories":[],"sub_categories":[],"readme":"# Custom Post Type Permalinks\n\nContributors:      Toro_Unit, inc2734, ixkaito, keita_kobayashi, strategio  \nDonate link:       https://www.paypal.me/torounit  \nTags:              permalink, url, link, address, custom post type  \nRequires at least: 6.1  \nTested up to:      6.6  \nRequires PHP:      7.4  \nLicense:           GPLv2 or Later  \nLicense URI:       http://www.gnu.org/licenses/gpl-2.0.txt  \nStable tag:        3.5.3\n\n\nEdit the permalink of custom post type.\n\n\u003c!-- only:github/ --\u003e\n[![Latest Stable Version](https://img.shields.io/wordpress/plugin/v/custom-post-type-permalinks?style=for-the-badge)](https://wordpress.org/plugins/custom-post-type-permalinks/)\n[![License](https://img.shields.io/github/license/torounit/custom-post-type-permalinks?style=for-the-badge)](https://github.com/torounit/custom-post-type-permalinks/blob/master/LICENSE)\n[![Downloads](https://img.shields.io/wordpress/plugin/dt/custom-post-type-permalinks.svg?style=for-the-badge)](https://wordpress.org/plugins/custom-post-type-permalinks/)\n[![Tested up](https://img.shields.io/wordpress/v/custom-post-type-permalinks.svg?style=for-the-badge)](https://wordpress.org/plugins/custom-post-type-permalinks/)\n[![wp.org rating](https://img.shields.io/wordpress/plugin/r/custom-post-type-permalinks.svg?style=for-the-badge)](https://wordpress.org/plugins/custom-post-type-permalinks/)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/torounit/custom-post-type-permalinks/test-and-release.yml?branch=master\u0026style=for-the-badge)](https://github.com/torounit/custom-post-type-permalinks/actions)\n\n[![](https://ps.w.org/custom-post-type-permalinks/assets/banner-1544x500.png?rev=1044335)](https://wordpress.org/plugins/custom-post-type-permalinks/)\n\u003c!-- /only:github --\u003e\n\n## Description\n\nCustom Post Type Permalinks allow you edit the permalink structure of custom post type.\n\nChange custom taxonomy archive's permalink to \"example.org/post_type/taxonomy_name/term_slug\". Can disable this fix.\n\nAnd support `wp_get_archives( 'post_type=foo' )` and post type date archive (ex. `example.com/post_type_slug/date/2010/01/01` ).\n\n[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)\n\nDonation: Please send [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV) or [Paypal](https://www.paypal.me/torounit)\n\n\n### Translators\n\n* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)\n* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)\n* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)\n\n### Also checkout\n\n* [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)\n\n\n## Setting on Code\n\nExample:\n\n```php\nregister_post_type( 'foo',\n\tarray(\n\t\t'public' =\u003e true,\n\t\t'has_archive' =\u003e true,\n\t\t'rewrite' =\u003e array(\n\t\t\t\"with_front\" =\u003e true\n\t\t),\n\t\t'cptp_permalink_structure' =\u003e '%post_id%'\n\t)\n);\n```\n\n### Exclude specific post type\n\n```php\nadd_filter(  'cptp_is_rewrite_supported_by_foo',  '__return_false' );\n\n// or\n\nadd_filter(  'cptp_is_rewrite_supported', function ( $support , $post_type ) {\n    if ( 'foo' === $post_type ) {\n        return false;\n    }\n    return $support;\n}, 10, 2);\n```\n\n## Installation\n\n* Download the custom-post-type-permalinks.zip file to your computer.\n* Unzip the file.\n* Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.\n* Activate the plugin through the 'Plugins' menu in WordPress.\n\nThat's it. You can access the permalinks setting by going to *Settings -\u003e Permalinks*.\n\n\n## Screenshots\n\n* screenshot-1.png\n\n## Changelog\n\n### 3.5.3\n* Tested WP 6.6\n* Fix notices for php 8.\n\n### 3.5.0\n* Tested WP 6.1 / 6.2 / 6.3\n* Tested PHP 8.0 / 8.2\n\n### 3.4.5\n* Update test for WP 5.7\n\n### 3.4.4\n* WPML support: Only apply slug translation if post type is supported. (Props @ffauvel)\n\n### 3.4.3\n* Fix archive link bug fix.\n\n### 3.4.2\n* Tested WP 5.6.\n\n### 3.4.1\n* Fix readme.\n\n### 3.4.0\n\n* Tested 5.5 beta3\n* WPML support: custom post type slug translation. ( Props @strategio )\n* Add new filter `cptp_post_link_category` and `cptp_post_link_term` .\n* Use Lowercase prefix for action and filter.\n\n### 3.3.5\n\n* Tested 5.4\n* fix CPTP_Module_Permalink::post_type_link.\n\n### 3.3.1\n\n* Add disable option for date / author and post type archive.\n* Bug fix for `parse_request`.\n\n### 3.2.2\n\n* Fix readme.txt\n\n### 3.2.0\n\n* Support only public post type.\n* Add `CPTP_is_rewrite_supported_by_${post_type}` and `CPTP_is_rewrite_supported` filter.\n* Remove post_type query wp_get_archives.\n\n### 3.1.4\n\n* Test for WordPress 4.9.\n* PHPCS fix.\n\n### 3.1.3\n\n* Test for WordPress 4.8.\n* Bug fix for attachment link.\n\n### 3.1.1\n\n* Bug fix in `CPTP_Module_Setting::upgrader_process_complete`.\n\n### 3.1.0\n\n* Add filter `CPTP_date_front`.\n* Fix sort term by `wp_list_sort` .\n\n### 3.0.0\n\n* Admin notice on update plugin.\n* Large bug fix.\n* no_taxonomy_structure bug fix.\n* Add default value for options.\n\n### 2.2.0\n\n* add `CPTP_Util::get_no_taxonomy_structure`.\n\n### 2.1.3\n\n* Set `no_taxonomy_structure` default `true`.\n\n### 2.1.2\n\n* `rewirte =\u003e false` post type support.\n\n### 2.1.0\n\n* Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.\n* Not create taxonomy rewrite rule when `rewrite` is `false`.\n\n### 2.0.2\n\n* pointer html bug fix.\n\n### 2.0.0\n\n* `add_rewrite_rules` on `wp_loaded` priority is changed 10 from 100. [fix issue #53](https://github.com/torounit/custom-post-type-permalinks/issues/53)\n* Replace `wp_get_post_terms` by `get_the_terms`. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)\n* Fix bug `register_uninstall_hook` called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)\n\n### 1.5.4\n\n* Fixed removed parent post problem.\n\n\n### 1.5.3\n\n* readme fix.\n\n### 1.5.0\n\n* Tested for 4.5.\n* Add filter `CPTP_set_{$module_name}_module`.\n\n\n### 1.4.0\n\n* Fix Translation Problem.\n\n\n### 1.3.1\n\n* bugfix `wp_get_archives`.\n\n### 1.3.0\n\n* bugfix for polylang.\n\n### 1.2.0\n\n* Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.\n* Add action `CPTP_registered_modules`.\n\n### 1.1.0\n\n* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !\n\n### 1.0.5\n\n* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !\n* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !\n\n### 1.0.4\n\n* option bug fix.\n\n### 1.0.3\n\n* add category rule, if only attached category to post type.\n\n### 1.0.2\n\n* category slug bug fix.\n\n### 1.0.0\n\n* Set Permalink enable `register_post_type`.\n* Enable add post type query to taxonomy archives.\n* Use Class Autoloader.\n* Create Rewrite Rule on `wp_loaded` action.\n* WordPress Code Format Fix.\n* `CPTP_Module_Permalink` Bug Fix.\n* Bug Fix.\n* Use Semantic Versioning.\n* Date Structure Fix.\n* Use Category Base.\n\n### 0.9.7\n\n* Adding date slug only conflicting `%post_id%`.\n* Change taxonomy link rewrite rule. Use `post_type`.\n* Can change template include custom taxonomy.\n\n### 0.9.6\n\n* Category and author.\n* French Transration. Thanks Geoffrey!\n* Hierarchial Term Fix.\n\n### 0.9.5.6\n\n* Strict Standard Error Fix.\n\n### 0.9.5.4\n\n* archive link bug fix.\n* Tested Up 3.9\n\n### 0.9.5.3\n\n* “/”bug fix.\n* taxonomy tmplate bug fix.\n\n### 0.9.5.2\n\n* Archives Rewrite Fix.\n\n### 0.9.5.1\n\n* Admin Bug Fix.\n\n### 0.9.5\n\n* Big change plugin architecture.\n* Show `has_archive`, `with_front`.\n\n### 0.9.4\n\n* Internal release.\n\n### 0.9.3.3\n\n* `has_archive` Bug Fix.\n* Fixed a bug in the link, including the extension.\n\n### 0.9.3.2\n\n* `wp_get_archives` Bug Fix.\n\n### 0.9.3.1\n\n* Tested 3.6\n* Bug Fix.\n\n\n### 0.9.3\n\n* Admin page fix.\n* slngle pageing link fix.\n* Add Russian translation.\n\n\n### 0.9\n\n* Add custom post type archive only `has_archive` is `true`.\n* Change method name.\n* Change hook custom post link.\n* Use Slug in `wp_get_archive()`.\n* Fix attachment link.\n\n\n### 0.8.7\n\n* Translate Bug Fix.\n\n### 0.8.6\n\n* Paging Bug Fix.\n* Commnent Paging.\n* Show pointer.\n*\n\n### 0.8.1\n\n* Bug Fix.\n\n### 0.7.9.1\n\n* Support Comment permalink.\n* Small change in setting page.\n* Change default value.\n* Bug Fix.\n\n### 0.7.8\n\n* Bug fix.\n\n\n### 0.7.7\n\n* Bug fix.\n\n### 0.7.6\n\n* Add parent's slug to hierarchical post type.\n\n\n### 0.7.5\n\n* Add ability to disable to change custom taxonomy archive's permalink.\n\n\n### 0.7.4\n\n* Bug fix taxonomy rewrite.\n\n\n### 0.7.3\n\n* Changed part for saving the data.\n\n### 0.7.2\n\n* Reweite bug fix.\n* Prewview bug fix.\n\n### 0.7.1\n\n* Bug fix.\n\n### 0.7\n\n* Add `%{taxonomy}%` tag.\n* A large number of Bug Fix.\n* Change Setting Page. Use Setting API.\n\n\n### 0.6.2\n\n* Fix `%author%` tag.\n\n### 0.6\n\n* First release on wordpress.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorounit%2Fcustom-post-type-permalinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorounit%2Fcustom-post-type-permalinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorounit%2Fcustom-post-type-permalinks/lists"}