{"id":34219,"date":"2015-01-28T07:59:13","date_gmt":"2015-01-28T07:59:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-post-type-rewrite\/"},"modified":"2024-08-22T06:53:57","modified_gmt":"2024-08-22T06:53:57","slug":"custom-post-type-rewrite","status":"publish","type":"plugin","link":"https:\/\/srd.wordpress.org\/plugins\/custom-post-type-rewrite\/","author":8903959,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.1","stable_tag":"1.2.1","tested":"6.6.5","requires":"4.9","requires_php":"5.6","requires_plugins":null,"header_name":"Custom Post Type Rewrite","header_author":"thingsym","header_description":"","assets_banners_color":"","last_updated":"2024-08-22 06:53:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/sponsors\/thingsym","header_plugin_uri":"https:\/\/github.com\/thingsym\/custom-post-type-rewrite","header_author_uri":"http:\/\/www.thingslabo.com\/","rating":3,"author_block_rating":0,"active_installs":1000,"downloads":15913,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"thingsym","date":"2015-01-28 08:00:45"},"1.0.1":{"tag":"1.0.1","author":"thingsym","date":"2016-04-14 09:02:42"},"1.0.2":{"tag":"1.0.2","author":"thingsym","date":"2019-01-16 08:38:43"},"1.0.3":{"tag":"1.0.3","author":"thingsym","date":"2019-05-14 12:17:26"},"1.0.4":{"tag":"1.0.4","author":"thingsym","date":"2020-12-20 08:52:00"},"1.1.0":{"tag":"1.1.0","author":"thingsym","date":"2021-07-23 11:51:08"},"1.1.1":{"tag":"1.1.1","author":"thingsym","date":"2021-12-07 06:05:06"},"1.1.2":{"tag":"1.1.2","author":"thingsym","date":"2022-02-01 10:55:19"},"1.1.3":{"tag":"1.1.3","author":"thingsym","date":"2022-02-24 08:26:37"},"1.1.4":{"tag":"1.1.4","author":"thingsym","date":"2022-05-12 07:53:29"},"1.2.0":{"tag":"1.2.0","author":"thingsym","date":"2022-05-27 07:47:59"},"1.2.1":{"tag":"1.2.1","author":"thingsym","date":"2024-08-22 06:53:57"}},"upgrade_notice":{"1.1.2":"<ul>\n<li>Requires at least version 4.9 of the WordPress<\/li>\n<li>Requires PHP version 5.6<\/li>\n<\/ul>","1.0.2":"<ul>\n<li>Requires at least version 3.8 of the WordPress<\/li>\n<\/ul>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.2.0","1.2.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1794,2662,22046,939],"plugin_category":[59],"plugin_contributors":[78488],"plugin_business_model":[],"class_list":["post-34219","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-post-type","plugin_tags-permalink","plugin_tags-permalink-structure","plugin_tags-permalinks","plugin_category-utilities-and-tools","plugin_contributors-thingsym","plugin_committers-thingsym"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-post-type-rewrite.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Custom Post Type Rewrite plugin adds default custom post type permalinks.<\/p>\n\n<p>By default, there are no some permalinks of custom post type.\nThe Custom Post Type Rewrite plugin adds permalink structure of custom post type.\nFollowing:<\/p>\n\n<ul>\n<li>date-based<\/li>\n<li>author-based<\/li>\n<li>front<\/li>\n<\/ul>\n\n<p>Note: Regarding has_archive and rewrite in $args of Parameters, the priority of the rewrite rule conforms to register_post_type().<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip files. Or install Custom Post Type Rewrite plugin using the WordPress plugin installer. In that case, skip 2.<\/li>\n<li>Upload \"custom-post-type-rewrite\" to the \"\/wp-content\/plugins\/\" directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Save permalink structure and refresh permalinks through the 'Settings &gt; Permalinks' menu in WordPress.<\/li>\n<li>Have fun!<\/li>\n<\/ol>\n\n<p><strong>IMPORTANT<\/strong>: By default, WordPress will not work the Custom Post Type Rewrite. You need to refresh permalinks.<\/p>\n\n<h4>Support<\/h4>\n\n<p>If you have any trouble, you can use the forums or report bugs.<\/p>\n\n<ul>\n<li>Forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/custom-post-type-rewrite\/\">https:\/\/wordpress.org\/support\/plugin\/custom-post-type-rewrite\/<\/a><\/li>\n<li>Issues: <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-rewrite\/issues\">https:\/\/github.com\/thingsym\/custom-post-type-rewrite\/issues<\/a><\/li>\n<\/ul>\n\n<h4>Contribution<\/h4>\n\n<p>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.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/thingsym\/custom-post-type-rewrite\">VCS - GitHub<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-rewrite\/\">Homepage - WordPress Plugin<\/a><\/li>\n<\/ul>\n\n<p>You can also contribute by answering issues on the forums.<\/p>\n\n<ul>\n<li>Forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/custom-post-type-rewrite\/\">https:\/\/wordpress.org\/support\/plugin\/custom-post-type-rewrite\/<\/a><\/li>\n<li>Issues: <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-rewrite\/issues\">https:\/\/github.com\/thingsym\/custom-post-type-rewrite\/issues<\/a><\/li>\n<\/ul>\n\n<h4>Patches and Bug Fixes<\/h4>\n\n<p>Forking on Github is another good way. You can send a pull request.<\/p>\n\n<ol>\n<li>Fork <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-rewrite\">Custom Post Type Rewrite<\/a> from GitHub repository<\/li>\n<li>Create a feature branch: git checkout -b my-new-feature<\/li>\n<li>Commit your changes: git commit -am 'Add some feature'<\/li>\n<li>Push to the branch: git push origin my-new-feature<\/li>\n<li>Create new Pull Request<\/li>\n<\/ol>\n\n<h4>Contribute guidlines<\/h4>\n\n<p>If you would like to contribute, here are some notes and guidlines.<\/p>\n\n<ul>\n<li>All development happens on the <strong>develop<\/strong> branch, so it is always the most up-to-date<\/li>\n<li>The <strong>master<\/strong> branch only contains tagged releases<\/li>\n<li>If you are going to be submitting a pull request, please submit your pull request to the <strong>develop<\/strong> branch<\/li>\n<li>See about <a href=\"https:\/\/help.github.com\/articles\/fork-a-repo\/\">forking<\/a> and <a href=\"https:\/\/help.github.com\/articles\/using-pull-requests\/\">pull requests<\/a><\/li>\n<\/ul>\n\n<h4>Test Matrix<\/h4>\n\n<p>For operation compatibility between PHP version and WordPress version, see below <a href=\"https:\/\/github.com\/thingsym\/custom-post-type-rewrite\/actions\">Github Actions<\/a>.<\/p>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>tested up to 6.2.0<\/li>\n<li>fix composer scripts<\/li>\n<li>update github actions<\/li>\n<li>add support section and enhance contribution section to README<\/li>\n<li>fix license<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>edit README<\/li>\n<li>add test case<\/li>\n<li>fix the priority of the rewrite rule of register_post_type()<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>change mysql from version 8.0 to version 5.7 using docker image<\/li>\n<li>fix indent style<\/li>\n<li>change plugin initialization to wp_loaded hook<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>fix 'Trying to get property 'permalink_structure' of non-object' warning<\/li>\n<li>change plugin initialization to plugins_loaded hook<\/li>\n<li>replace assert from assertEquals to assertSame<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>update wp-plugin-unit-test.yml<\/li>\n<li>bump up yoast\/phpunit-polyfills version<\/li>\n<li>change os to ubuntu-20.04 for ci<\/li>\n<li>add Upgrade Notice<\/li>\n<li>change requires at least to wordpress 4.9<\/li>\n<li>change requires to PHP 5.6<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>add timeout-minutes to workflows<\/li>\n<li>add phpunit-polyfills<\/li>\n<li>tested up to 5.8.0<\/li>\n<li>add .editorconfig<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>tested up to 5.7.0<\/li>\n<li>separate a class into a class file<\/li>\n<li>add test case<\/li>\n<li>add sponsor link<\/li>\n<li>add FUNDING.yml<\/li>\n<li>add donate link<\/li>\n<li>update wordpress-test-matrix<\/li>\n<li>add GitHub actions for CI\/CD, remove .travis.yml<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>fix rewrite_rule<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>fix indent and reformat with phpcs and phpcbf<\/li>\n<li>add composer.json for test<\/li>\n<li>add static code analysis config<\/li>\n<li>change Requires at least from 3.4.1 to 3.8<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>fix add_rewrite_rule<\/li>\n<li>fix date-based permalink structure<\/li>\n<li>fix phpunit tests<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>refactoring<\/li>\n<li>add phpunit and tests<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Custom Post Type Rewrite plugin adds default custom post type permalinks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/34219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=34219"}],"author":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thingsym"}],"wp:attachment":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=34219"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=34219"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=34219"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=34219"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=34219"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=34219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}