Custom Post Type Permalinks - Version 3.2.0

Version Description

Download this release

Release Info

Developer Toro_Unit
Plugin Icon 128x128 Custom Post Type Permalinks
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.5 to 3.2.0

.svnignore CHANGED
@@ -21,6 +21,7 @@ phpunit.xml.dist
21
  multisite.xml
22
  multisite.xml.dist
23
  phpcs.ruleset.xml
 
24
  README.md
25
  wp-cli.local.yml
26
  tests
21
  multisite.xml
22
  multisite.xml.dist
23
  phpcs.ruleset.xml
24
+ codesniffer.ruleset.xml
25
  README.md
26
  wp-cli.local.yml
27
  tests
CPTP/Module/GetArchives.php CHANGED
@@ -43,6 +43,20 @@ class CPTP_Module_GetArchives extends CPTP_Module {
43
  public function getarchives_where( $where, $r ) {
44
  $this->get_archives_where_r = $r;
45
  if ( isset( $r['post_type'] ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  $where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
47
  }
48
 
@@ -93,10 +107,23 @@ class CPTP_Module_GetArchives extends CPTP_Module {
93
  return $html;
94
  }
95
 
 
 
 
 
96
  if ( 'post' === $this->get_archives_where_r['post_type'] ) {
97
  return $html;
98
  }
99
 
 
 
 
 
 
 
 
 
 
100
  $c = isset( $this->get_archives_where_r['taxonomy'] ) && is_array( $this->get_archives_where_r['taxonomy'] ) ? $this->get_archives_where_r['taxonomy'] : '';
101
  $t = $this->get_archives_where_r['post_type'];
102
 
@@ -112,7 +139,6 @@ class CPTP_Module_GetArchives extends CPTP_Module {
112
  $blog_url = preg_replace( '/https?:\/\//', '', $blog_url );
113
  $ret_link = str_replace( $blog_url, $blog_url . '/%link_dir%', $html );
114
 
115
- $post_type = get_post_type_object( $this->get_archives_where_r['post_type'] );
116
  if ( empty( $c ) ) {
117
  if ( isset( $post_type->rewrite['slug'] ) ) {
118
  $link_dir = $post_type->rewrite['slug'];
@@ -133,6 +159,7 @@ class CPTP_Module_GetArchives extends CPTP_Module {
133
  }
134
 
135
  $ret_link = str_replace( '%link_dir%', $link_dir, $ret_link );
 
136
  } else {
137
  $ret_link = $html;
138
  }
43
  public function getarchives_where( $where, $r ) {
44
  $this->get_archives_where_r = $r;
45
  if ( isset( $r['post_type'] ) ) {
46
+
47
+ if ( ! in_array( $r['post_type'], CPTP_Util::get_post_types(), true ) ) {
48
+ return $where;
49
+ }
50
+
51
+ $post_type = get_post_type_object( $r['post_type'] );
52
+ if ( ! $post_type ) {
53
+ return $where;
54
+ }
55
+
56
+ if ( ! $post_type->has_archive ) {
57
+ return $where;
58
+ }
59
+
60
  $where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
61
  }
62
 
107
  return $html;
108
  }
109
 
110
+ if ( ! in_array( $this->get_archives_where_r['post_type'], CPTP_Util::get_post_types(), true ) ) {
111
+ return $html;
112
+ }
113
+
114
  if ( 'post' === $this->get_archives_where_r['post_type'] ) {
115
  return $html;
116
  }
117
 
118
+ $post_type = get_post_type_object( $this->get_archives_where_r['post_type'] );
119
+ if ( ! $post_type ) {
120
+ return $html;
121
+ }
122
+
123
+ if ( ! $post_type->has_archive ) {
124
+ return $html;
125
+ }
126
+
127
  $c = isset( $this->get_archives_where_r['taxonomy'] ) && is_array( $this->get_archives_where_r['taxonomy'] ) ? $this->get_archives_where_r['taxonomy'] : '';
128
  $t = $this->get_archives_where_r['post_type'];
129
 
139
  $blog_url = preg_replace( '/https?:\/\//', '', $blog_url );
140
  $ret_link = str_replace( $blog_url, $blog_url . '/%link_dir%', $html );
141
 
 
142
  if ( empty( $c ) ) {
143
  if ( isset( $post_type->rewrite['slug'] ) ) {
144
  $link_dir = $post_type->rewrite['slug'];
159
  }
160
 
161
  $ret_link = str_replace( '%link_dir%', $link_dir, $ret_link );
162
+ $ret_link = str_replace( '?post_type=' . $this->get_archives_where_r['post_type'], '', $ret_link );
163
  } else {
164
  $ret_link = $html;
165
  }
CPTP/Module/Permalink.php CHANGED
@@ -81,6 +81,10 @@ class CPTP_Module_Permalink extends CPTP_Module {
81
  return $post_link;
82
  }
83
 
 
 
 
 
84
  $permalink = $wp_rewrite->get_extra_permastruct( $post_type );
85
 
86
  $permalink = str_replace( '%post_id%', $post->ID, $permalink );
@@ -289,6 +293,10 @@ class CPTP_Module_Permalink extends CPTP_Module {
289
  return $link;
290
  }
291
 
 
 
 
 
292
  $permalink = CPTP_Util::get_permalink_structure( $post_parent->post_type );
293
  $post_type = get_post_type_object( $post_parent->post_type );
294
 
@@ -331,11 +339,16 @@ class CPTP_Module_Permalink extends CPTP_Module {
331
  }
332
 
333
  $taxonomy = get_taxonomy( $taxonomy );
 
 
 
 
 
334
  if ( $taxonomy->_builtin ) {
335
  return $termlink;
336
  }
337
 
338
- if ( empty( $taxonomy ) ) {
339
  return $termlink;
340
  }
341
 
81
  return $post_link;
82
  }
83
 
84
+ if ( ! in_array( $post->post_type, CPTP_Util::get_post_types(), true ) ) {
85
+ return $post_link;
86
+ }
87
+
88
  $permalink = $wp_rewrite->get_extra_permastruct( $post_type );
89
 
90
  $permalink = str_replace( '%post_id%', $post->ID, $permalink );
293
  return $link;
294
  }
295
 
296
+ if ( ! in_array( $post->post_type, CPTP_Util::get_post_types(), true ) ) {
297
+ return $link;
298
+ }
299
+
300
  $permalink = CPTP_Util::get_permalink_structure( $post_parent->post_type );
301
  $post_type = get_post_type_object( $post_parent->post_type );
302
 
339
  }
340
 
341
  $taxonomy = get_taxonomy( $taxonomy );
342
+
343
+ if ( empty( $taxonomy ) ) {
344
+ return $termlink;
345
+ }
346
+
347
  if ( $taxonomy->_builtin ) {
348
  return $termlink;
349
  }
350
 
351
+ if ( ! $taxonomy->public ) {
352
  return $termlink;
353
  }
354
 
CPTP/Module/Rewrite.php CHANGED
@@ -41,7 +41,7 @@ class CPTP_Module_Rewrite extends CPTP_Module {
41
  */
42
  global $wp_rewrite;
43
 
44
- if ( $args->_builtin || ! $args->publicly_queryable ) {
45
  return;
46
  }
47
 
@@ -49,6 +49,10 @@ class CPTP_Module_Rewrite extends CPTP_Module {
49
  return;
50
  }
51
 
 
 
 
 
52
  $permalink = CPTP_Util::get_permalink_structure( $post_type );
53
 
54
  if ( ! $permalink ) {
41
  */
42
  global $wp_rewrite;
43
 
44
+ if ( $args->_builtin ) {
45
  return;
46
  }
47
 
49
  return;
50
  }
51
 
52
+ if ( ! in_array( $post_type, CPTP_Util::get_post_types(), true ) ) {
53
+ return;
54
+ }
55
+
56
  $permalink = CPTP_Util::get_permalink_structure( $post_type );
57
 
58
  if ( ! $permalink ) {
CPTP/Util.php CHANGED
@@ -27,13 +27,12 @@ class CPTP_Util {
27
  */
28
  public static function get_post_types() {
29
  $param = array(
30
- '_builtin' => false,
31
- 'publicly_queryable' => true,
32
- 'show_ui' => true,
33
  );
34
  $post_type = get_post_types( $param );
35
 
36
- return array_filter( $post_type, array( __CLASS__, 'is_post_type_support_rewrite' ) );
37
 
38
  }
39
 
@@ -44,13 +43,32 @@ class CPTP_Util {
44
  *
45
  * @return bool
46
  */
47
- private static function is_post_type_support_rewrite( $post_type ) {
48
  $post_type_object = get_post_type_object( $post_type );
49
  if ( false === $post_type_object->rewrite ) {
50
- return false;
 
 
51
  }
52
 
53
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
  /**
@@ -68,7 +86,7 @@ class CPTP_Util {
68
  }
69
 
70
  return get_taxonomies( array(
71
- 'show_ui' => true,
72
  '_builtin' => false,
73
  ), $output );
74
  }
@@ -135,7 +153,7 @@ class CPTP_Util {
135
  $name = $parent->name;
136
  }
137
 
138
- if ( $parent->parent && ( $parent->parent != $parent->term_id ) && ! in_array( $parent->parent, $visited ) ) {
139
  $visited[] = $parent->parent;
140
  $chain .= CPTP_Util::get_taxonomy_parents( $parent->parent, $taxonomy, $link, $separator, $nicename, $visited );
141
  }
27
  */
28
  public static function get_post_types() {
29
  $param = array(
30
+ '_builtin' => false,
31
+ 'public' => true,
 
32
  );
33
  $post_type = get_post_types( $param );
34
 
35
+ return array_filter( $post_type, array( __CLASS__, 'is_rewrite_supported_by' ) );
36
 
37
  }
38
 
43
  *
44
  * @return bool
45
  */
46
+ private static function is_rewrite_supported_by( $post_type ) {
47
  $post_type_object = get_post_type_object( $post_type );
48
  if ( false === $post_type_object->rewrite ) {
49
+ $support = false;
50
+ } else {
51
+ $support = true;
52
  }
53
 
54
+ /**
55
+ * Filters support CPTP for custom post type.
56
+ *
57
+ * @since 3.2.0
58
+ *
59
+ * @param bool $support support CPTP.
60
+ */
61
+ $support = apply_filters( "CPTP_is_rewrite_supported_by_${post_type}", $support );
62
+
63
+ /**
64
+ * Filters support CPTP for custom post type.
65
+ *
66
+ * @since 3.2.0
67
+ *
68
+ * @param bool $support support CPTP.
69
+ * @param string $post_type post type name.
70
+ */
71
+ return apply_filters( 'CPTP_is_rewrite_supported', $support, $post_type );
72
  }
73
 
74
  /**
86
  }
87
 
88
  return get_taxonomies( array(
89
+ 'public' => true,
90
  '_builtin' => false,
91
  ), $output );
92
  }
153
  $name = $parent->name;
154
  }
155
 
156
+ if ( $parent->parent && ( $parent->parent !== $parent->term_id ) && ! in_array( $parent->parent, $visited, true ) ) {
157
  $visited[] = $parent->parent;
158
  $chain .= CPTP_Util::get_taxonomy_parents( $parent->parent, $taxonomy, $link, $separator, $nicename, $visited );
159
  }
circle.yml DELETED
@@ -1,25 +0,0 @@
1
- ## Customize the test machine
2
- machine:
3
- php:
4
- version: 7.1.9
5
- # Override /etc/hosts
6
-
7
- # Add some environment variables
8
- environment:
9
- CIRCLE_ENV: test
10
- WP_VERSION: trunk
11
-
12
- ## Customize dependencies
13
- dependencies:
14
- pre:
15
- - sudo apt-get update; sudo apt-get install subversion
16
- - bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 $WP_VERSION
17
- - composer install
18
-
19
- ## Customize test commands
20
- test:
21
- override:
22
- - phpunit
23
- - composer phpcs
24
-
25
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
codesniffer.ruleset.xml DELETED
@@ -1,16 +0,0 @@
1
- <?xml version="1.0"?>
2
- <ruleset>
3
- <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
4
- <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->
5
- <!-- Include the WordPress ruleset, with exclusions. -->
6
- <rule ref="WordPress">
7
- <exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
8
- <exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
9
- <exclude name="WordPress.VIP.RestrictedFunctions" />
10
- <exclude name="Generic.Files.LowercasedFilename" />
11
- <exclude name="WordPress.NamingConventions" />
12
- </rule>
13
-
14
- <exclude-pattern>*/vendor/*</exclude-pattern>
15
- <exclude-pattern>*/tests/*</exclude-pattern>
16
- </ruleset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
composer.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "name": "torounit/custom-post-type-permalinks",
3
- "description": "Edit the permalink of custom post type !",
4
- "type": "wordpress-plugin",
5
- "license": "GPL-2.0+",
6
- "authors": [
7
- {
8
- "name": "Hiroshi Urabe",
9
- "email": "mail@torounit.com"
10
- }
11
- ],
12
- "require": {},
13
- "require-dev": {
14
- "squizlabs/php_codesniffer": "^2.7",
15
- "wp-coding-standards/wpcs": "^0.10"
16
- },
17
- "scripts": {
18
- "post-install-cmd": [
19
- "@php vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs/"
20
- ],
21
- "post-update-cmd": [
22
- "@php vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs/"
23
- ],
24
- "phpcs": [
25
- "@php vendor/bin/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php"
26
- ]
27
- }
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
custom-post-type-permalinks.php CHANGED
@@ -5,13 +5,13 @@
5
  * Description: Add post archives of custom post type and customizable permalinks.
6
  * Author: Toro_Unit
7
  * Author URI: https://torounit.com/
8
- * Version: 3.1.5
9
  * Text Domain: custom-post-type-permalinks
10
  * License: GPL2 or later
11
  * Domain Path: /language/
12
  *
13
  * @package Custom_Post_Type_Permalinks
14
- * @version 3.1.5
15
  */
16
 
17
  define( 'CPTP_PLUGIN_FILE', __FILE__ );
5
  * Description: Add post archives of custom post type and customizable permalinks.
6
  * Author: Toro_Unit
7
  * Author URI: https://torounit.com/
8
+ * Version: 3.2.0
9
  * Text Domain: custom-post-type-permalinks
10
  * License: GPL2 or later
11
  * Domain Path: /language/
12
  *
13
  * @package Custom_Post_Type_Permalinks
14
+ * @version 3.2.0
15
  */
16
 
17
  define( 'CPTP_PLUGIN_FILE', __FILE__ );
readme.md CHANGED
@@ -1,8 +1,352 @@
1
- # Custom Post Type Permalinks
2
- Donate link: https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX
3
-
4
- Edit the permalink of custom post type.
5
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  [![Latest Stable Version](https://poser.pugx.org/torounit/custom-post-type-permalinks/v/stable)](https://packagist.org/packages/torounit/custom-post-type-permalinks)
8
  [![License](https://poser.pugx.org/torounit/custom-post-type-permalinks/license)](https://packagist.org/packages/torounit/custom-post-type-permalinks)
@@ -14,324 +358,324 @@ Edit the permalink of custom post type.
14
  [![Gratipay](https://img.shields.io/gratipay/team/custom-post-type-permalinks.svg)](https://gratipay.com/Custom-Post-Type-Permalinks/)
15
  [![](https://ps.w.org/custom-post-type-permalinks/assets/banner-1544x500.png?rev=1044335)](https://wordpress.org/plugins/custom-post-type-permalinks/)
16
 
17
- ## Description
18
-
19
- Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
20
-
21
- Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
22
-
23
- And support wp_get_archives( "post_type=foo" ).
24
-
25
- [This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
26
-
27
- Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
28
-
29
-
30
  ### Translators
31
 
32
- * Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
33
- * French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
34
- * Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
35
-
36
- ### Also checkout
37
-
38
- * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
39
-
40
-
41
- ## Setting on Code
42
-
43
- Example:
44
-
45
- `
46
- register_post_type( 'foo',
47
- array(
48
- "public" => true,
49
- 'has_archive' => true,
50
- "rewrite" => [
51
- "with_front" => true
52
- ],
53
- "cptp_permalink_structure" => "%post_id%"
54
- )
55
- );
56
- `
57
-
58
-
59
- ## Installation
60
-
61
- * Download the custom-post-type-permalinks.zip file to your computer.
62
- * Unzip the file.
63
- * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
64
- * Activate the plugin through the 'Plugins' menu in WordPress.
65
-
66
- That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
67
-
68
-
69
- ## Screenshots
70
-
71
- * screenshot-1.png
72
-
73
-
74
- ## Changelog
75
-
76
  ### 3.1.3
77
 
78
- * Test for WordPress 4.8.
79
- * Bug fix for attachment link.
80
-
81
  ### 3.1.1
82
 
83
- * Bug fix in CPTP_Module_Setting::upgrader_process_complete.
84
-
85
  ### 3.1.0
86
 
87
- * Add filter 'CPTP_date_front'.
88
- * Fix sort term by `wp_list_sort` .
89
-
90
  ### 3.0.0
91
 
92
- * Admin notice on update plugin.
93
- * Large bug fix.
94
- * no_taxonomy_structure bug fix.
95
- * Add default value for options.
96
-
97
- ### 2.2.0
98
-
99
- * add `CPTP_Util::get_no_taxonomy_structure`.
100
-
101
- ### 2.1.3
102
-
103
- * Set `no_taxonomy_structure` default true.
104
-
105
- ### 2.1.2
106
-
107
- * `rewirte => false` post type support.
108
-
109
- ### 2.1.0
110
-
111
- * Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
112
- * Not create taxonomy rewrite rule when `rewrite` is `false`.
113
-
114
- ### 2.0.2
115
-
116
- * pointer html bug fix.
117
-
118
- ### 2.0.0
119
-
120
- * `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)
121
- * Replace wp_get_post_terms by get_the_terms. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
122
- * Fix bug register_uninstall_hook called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
123
-
124
- ### 1.5.4
125
-
126
- * Fixed removed parent post problem.
127
-
128
-
129
- ### 1.5.3
130
-
131
- * readme fix.
132
-
133
- ### 1.5.0
134
-
135
- * Tested for 4.5.
136
- * Add filter CPTP_set_{$module_name}_module.
137
-
138
-
139
  ### 1.4.0
140
 
141
- * Fix Translation Problem.
142
-
143
-
144
  ### 1.3.1
145
 
146
- * bugfix `wp_get_archives`.
147
-
148
  ### 1.3.0
149
 
150
- * bugfix for polylang.
151
-
152
  ### 1.2.0
153
 
154
- * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
155
- * Add action `CPTP_registered_modules`.
156
-
157
  ### 1.1.0
158
 
159
- * WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
160
-
161
  ### 1.0.5
162
 
163
- * admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
164
- * Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
165
-
166
  ### 1.0.4
167
 
168
- * option bug fix.
169
-
170
  ### 1.0.3
171
 
172
- * add category rule, if only attached category to post type.
173
-
174
  ### 1.0.2
175
 
176
- * category slug bug fix.
177
-
178
  ### 1.0.0
179
 
180
- * Set Permalink enable register_post_type.
181
- * Enable add post type query to taxonomy archives.
182
- * Use Class Autoloader.
183
- * Create Rewrite Rule on `wp_loaded` action.
184
- * WordPress Code Format Fix.
185
- * CPTP_Module_Permalink Bug Fix.
186
- * Bug Fix.
187
- * Use Semantic Versioning.
188
- * Date Structure Fix.
189
- * Use Category Base.
190
-
191
  ### 0.9.7
192
 
193
- * Adding date slug only conflicting %post_id%.
194
- * Change taxonomy link rewrite rule. Use post_type.
195
- * Can change template include custom taxonomy.
196
-
197
  ### 0.9.6
198
 
199
- * Category and author.
200
- * French Transration. Thanks Geoffrey!
201
- * Hierarchial Term Fix.
202
-
203
  ### 0.9.5.6
204
 
205
- * Strict Standard Error Fix.
206
-
207
  ### 0.9.5.4
208
 
209
- * archive link bug fix.
210
- * Tested Up 3.9
211
-
212
  ### 0.9.5.3
213
 
214
- * “/”bug fix.
215
- * taxonomy tmplate bug fix.
216
-
217
  ### 0.9.5.2
218
 
219
- * Archives Rewrite Fix.
220
-
221
  ### 0.9.5.1
222
 
223
- * Admin Bug Fix.
224
-
225
  ### 0.9.5
226
 
227
- * Big change plugin architecture.
228
- * Show has_archive, with_front.
229
-
230
  ### 0.9.4
231
 
232
- * Internal release.
233
-
234
  ### 0.9.3.3
235
 
236
- * has_archive Bug Fix.
237
- * Fixed a bug in the link, including the extension.
238
-
239
  ### 0.9.3.2
240
 
241
- * wp_get_archives Bug Fix.
242
-
243
  ### 0.9.3.1
244
 
245
- * Tested 3.6
246
- * Bug Fix.
247
-
248
-
249
  ### 0.9.3
250
 
251
- * Admin page fix.
252
- * slngle pageing link fix.
253
- * Add Russian translation.
254
-
255
-
256
  ### 0.9
257
 
258
- * Add custom post type archive only has_archive->true
259
- * Change method name.
260
- * Change hook custom post link.
261
- * Use Slug in wp_get_archive().
262
- * Fix attachment link.
263
-
264
-
265
  ### 0.8.7
266
 
267
- * Translate Bug Fix.
268
-
269
  ### 0.8.6
270
 
271
- * Paging Bug Fix.
272
- * Commnent Paging.
273
- * Show pointer.
274
- *
275
-
276
  ### 0.8.1
277
 
278
- * Bug Fix.
279
-
280
  ### 0.7.9.1
281
 
282
- * Support Comment permalink.
283
- * Small change in setting page.
284
- * Change default value.
285
- * Bug Fix.
286
-
287
  ### 0.7.8
288
 
289
- * Bug fix.
290
-
291
-
292
  ### 0.7.7
293
 
294
- * Bug fix.
295
-
296
  ### 0.7.6
297
 
298
- * Add parent's slug to hierarchical post type.
299
-
300
-
301
  ### 0.7.5
302
 
303
- * Add ability to disable to change custom taxonomy archive's permalink.
304
-
305
-
306
  ### 0.7.4
307
 
308
- * Bug fix taxonomy rewrite.
309
-
310
-
311
  ### 0.7.3
312
 
313
- * Changed part for saving the data.
314
-
315
  ### 0.7.2
316
 
317
- * Reweite bug fix.
318
- * Prewview bug fix.
319
-
320
  ### 0.7.1
321
 
322
- * Bug fix.
323
-
324
  ### 0.7
325
 
326
- * Add %{taxonomy}% tag.
327
- * A large number of Bug Fix.
328
- * Change Setting Page. Use Setting API.
329
-
330
-
331
  ### 0.6.2
332
 
333
- * Fix %author% tag.
334
-
335
  ### 0.6
336
 
337
- * First release on wordpress.org
1
+ # Custom Post Type Permalinks
2
+ Donate link: https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX
3
+
4
+ Edit the permalink of custom post type.
5
+
6
+
7
+ [![Latest Stable Version](https://poser.pugx.org/torounit/custom-post-type-permalinks/v/stable)](https://packagist.org/packages/torounit/custom-post-type-permalinks)
8
+ [![License](https://poser.pugx.org/torounit/custom-post-type-permalinks/license)](https://packagist.org/packages/torounit/custom-post-type-permalinks)
9
+ [![Downloads](https://img.shields.io/wordpress/plugin/dt/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
10
+ [![Tested up](https://img.shields.io/wordpress/v/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
11
+ [![wp.org rating](https://img.shields.io/wordpress/plugin/r/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
12
+ [![Build Status](https://travis-ci.org/torounit/custom-post-type-permalinks.svg)](https://travis-ci.org/torounit/custom-post-type-permalinks)
13
+ [![Donation](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX)
14
+ [![Gratipay](https://img.shields.io/gratipay/team/custom-post-type-permalinks.svg)](https://gratipay.com/Custom-Post-Type-Permalinks/)
15
+ [![](https://ps.w.org/custom-post-type-permalinks/assets/banner-1544x500.png?rev=1044335)](https://wordpress.org/plugins/custom-post-type-permalinks/)
16
+
17
+ ## Description
18
+
19
+ Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
20
+
21
+ Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
22
+
23
+ And support wp_get_archives( "post_type=foo" ).
24
+
25
+ [This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
26
+
27
+ Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
28
+
29
+
30
+ ### Translators
31
+
32
+ * Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
33
+ * French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
34
+ * Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
35
+
36
+ ### Also checkout
37
+
38
+ * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
39
+
40
+
41
+ ## Setting on Code
42
+
43
+ Example:
44
+
45
+ `
46
+ register_post_type( 'foo',
47
+ array(
48
+ "public" => true,
49
+ 'has_archive' => true,
50
+ "rewrite" => [
51
+ "with_front" => true
52
+ ],
53
+ "cptp_permalink_structure" => "%post_id%"
54
+ )
55
+ );
56
+ `
57
+
58
+
59
+ ## Installation
60
+
61
+ * Download the custom-post-type-permalinks.zip file to your computer.
62
+ * Unzip the file.
63
+ * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
64
+ * Activate the plugin through the 'Plugins' menu in WordPress.
65
+
66
+ That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
67
+
68
+
69
+ ## Screenshots
70
+
71
+ * screenshot-1.png
72
+
73
+
74
+ ## Changelog
75
+
76
+ ### 3.2.0
77
+ * Support only public post type.
78
+ * Add `CPTP_is_rewrite_supported_by_${post_type}` and `CPTP_is_rewrite_supported` filter.
79
+ * Remove post_type query wp_get_archives.
80
+
81
+ ### 3.1.4
82
+ * Test for WordPress 4.9.
83
+ * PHPCS fix.
84
+
85
+ ### 3.1.3
86
+
87
+ * Test for WordPress 4.8.
88
+ * Bug fix for attachment link.
89
+
90
+ ### 3.1.1
91
+
92
+ * Bug fix in CPTP_Module_Setting::upgrader_process_complete.
93
+
94
+ ### 3.1.0
95
+
96
+ * Add filter 'CPTP_date_front'.
97
+ * Fix sort term by `wp_list_sort` .
98
+
99
+ ### 3.0.0
100
+
101
+ * Admin notice on update plugin.
102
+ * Large bug fix.
103
+ * no_taxonomy_structure bug fix.
104
+ * Add default value for options.
105
+
106
+ ### 2.2.0
107
+
108
+ * add `CPTP_Util::get_no_taxonomy_structure`.
109
+
110
+ ### 2.1.3
111
+
112
+ * Set `no_taxonomy_structure` default true.
113
+
114
+ ### 2.1.2
115
+
116
+ * `rewirte => false` post type support.
117
+
118
+ ### 2.1.0
119
+
120
+ * Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
121
+ * Not create taxonomy rewrite rule when `rewrite` is `false`.
122
+
123
+ ### 2.0.2
124
+
125
+ * pointer html bug fix.
126
+
127
+ ### 2.0.0
128
+
129
+ * `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)
130
+ * Replace wp_get_post_terms by get_the_terms. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
131
+ * Fix bug register_uninstall_hook called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
132
+
133
+ ### 1.5.4
134
+
135
+ * Fixed removed parent post problem.
136
+
137
+
138
+ ### 1.5.3
139
+
140
+ * readme fix.
141
+
142
+ ### 1.5.0
143
+
144
+ * Tested for 4.5.
145
+ * Add filter CPTP_set_{$module_name}_module.
146
+
147
+
148
+ ### 1.4.0
149
+
150
+ * Fix Translation Problem.
151
+
152
+
153
+ ### 1.3.1
154
+
155
+ * bugfix `wp_get_archives`.
156
+
157
+ ### 1.3.0
158
+
159
+ * bugfix for polylang.
160
+
161
+ ### 1.2.0
162
+
163
+ * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
164
+ * Add action `CPTP_registered_modules`.
165
+
166
+ ### 1.1.0
167
+
168
+ * WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
169
+
170
+ ### 1.0.5
171
+
172
+ * admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
173
+ * Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
174
+
175
+ ### 1.0.4
176
+
177
+ * option bug fix.
178
+
179
+ ### 1.0.3
180
+
181
+ * add category rule, if only attached category to post type.
182
+
183
+ ### 1.0.2
184
+
185
+ * category slug bug fix.
186
+
187
+ ### 1.0.0
188
+
189
+ * Set Permalink enable register_post_type.
190
+ * Enable add post type query to taxonomy archives.
191
+ * Use Class Autoloader.
192
+ * Create Rewrite Rule on `wp_loaded` action.
193
+ * WordPress Code Format Fix.
194
+ * CPTP_Module_Permalink Bug Fix.
195
+ * Bug Fix.
196
+ * Use Semantic Versioning.
197
+ * Date Structure Fix.
198
+ * Use Category Base.
199
+
200
+ ### 0.9.7
201
+
202
+ * Adding date slug only conflicting %post_id%.
203
+ * Change taxonomy link rewrite rule. Use post_type.
204
+ * Can change template include custom taxonomy.
205
+
206
+ ### 0.9.6
207
+
208
+ * Category and author.
209
+ * French Transration. Thanks Geoffrey!
210
+ * Hierarchial Term Fix.
211
+
212
+ ### 0.9.5.6
213
+
214
+ * Strict Standard Error Fix.
215
+
216
+ ### 0.9.5.4
217
+
218
+ * archive link bug fix.
219
+ * Tested Up 3.9
220
+
221
+ ### 0.9.5.3
222
+
223
+ * “/”bug fix.
224
+ * taxonomy tmplate bug fix.
225
+
226
+ ### 0.9.5.2
227
+
228
+ * Archives Rewrite Fix.
229
+
230
+ ### 0.9.5.1
231
+
232
+ * Admin Bug Fix.
233
+
234
+ ### 0.9.5
235
+
236
+ * Big change plugin architecture.
237
+ * Show has_archive, with_front.
238
+
239
+ ### 0.9.4
240
+
241
+ * Internal release.
242
+
243
+ ### 0.9.3.3
244
+
245
+ * has_archive Bug Fix.
246
+ * Fixed a bug in the link, including the extension.
247
+
248
+ ### 0.9.3.2
249
+
250
+ * wp_get_archives Bug Fix.
251
+
252
+ ### 0.9.3.1
253
+
254
+ * Tested 3.6
255
+ * Bug Fix.
256
+
257
+
258
+ ### 0.9.3
259
+
260
+ * Admin page fix.
261
+ * slngle pageing link fix.
262
+ * Add Russian translation.
263
+
264
+
265
+ ### 0.9
266
+
267
+ * Add custom post type archive only has_archive->true
268
+ * Change method name.
269
+ * Change hook custom post link.
270
+ * Use Slug in wp_get_archive().
271
+ * Fix attachment link.
272
+
273
+
274
+ ### 0.8.7
275
+
276
+ * Translate Bug Fix.
277
+
278
+ ### 0.8.6
279
+
280
+ * Paging Bug Fix.
281
+ * Commnent Paging.
282
+ * Show pointer.
283
+ *
284
+
285
+ ### 0.8.1
286
+
287
+ * Bug Fix.
288
+
289
+ ### 0.7.9.1
290
+
291
+ * Support Comment permalink.
292
+ * Small change in setting page.
293
+ * Change default value.
294
+ * Bug Fix.
295
+
296
+ ### 0.7.8
297
+
298
+ * Bug fix.
299
+
300
+
301
+ ### 0.7.7
302
+
303
+ * Bug fix.
304
+
305
+ ### 0.7.6
306
+
307
+ * Add parent's slug to hierarchical post type.
308
+
309
+
310
+ ### 0.7.5
311
+
312
+ * Add ability to disable to change custom taxonomy archive's permalink.
313
+
314
+
315
+ ### 0.7.4
316
+
317
+ * Bug fix taxonomy rewrite.
318
+
319
+
320
+ ### 0.7.3
321
+
322
+ * Changed part for saving the data.
323
+
324
+ ### 0.7.2
325
+
326
+ * Reweite bug fix.
327
+ * Prewview bug fix.
328
+
329
+ ### 0.7.1
330
+
331
+ * Bug fix.
332
+
333
+ ### 0.7
334
+
335
+ * Add %{taxonomy}% tag.
336
+ * A large number of Bug Fix.
337
+ * Change Setting Page. Use Setting API.
338
+
339
+
340
+ ### 0.6.2
341
+
342
+ * Fix %author% tag.
343
+
344
+ ### 0.6
345
+
346
+ * First release on wordpress.org
347
+ # Custom Post Type Permalinks
348
+
349
+ Edit the permalink of custom post type.
350
 
351
  [![Latest Stable Version](https://poser.pugx.org/torounit/custom-post-type-permalinks/v/stable)](https://packagist.org/packages/torounit/custom-post-type-permalinks)
352
  [![License](https://poser.pugx.org/torounit/custom-post-type-permalinks/license)](https://packagist.org/packages/torounit/custom-post-type-permalinks)
358
  [![Gratipay](https://img.shields.io/gratipay/team/custom-post-type-permalinks.svg)](https://gratipay.com/Custom-Post-Type-Permalinks/)
359
  [![](https://ps.w.org/custom-post-type-permalinks/assets/banner-1544x500.png?rev=1044335)](https://wordpress.org/plugins/custom-post-type-permalinks/)
360
 
361
+ ## Description
362
+
363
+ Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
364
+
365
+ Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
366
+
367
+ And support wp_get_archives( "post_type=foo" ).
368
+
369
+ [This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
370
+
371
+ Donation: Please send [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
372
+
373
+
374
  ### Translators
375
 
376
+ * Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
377
+ * French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
378
+ * Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
379
+
380
+ ### Also checkout
381
+
382
+ * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
383
+
384
+
385
+ ## Setting on Code
386
+
387
+ Example:
388
+
389
+ ```
390
+ register_post_type( 'foo',
391
+ array(
392
+ "public" => true,
393
+ 'has_archive' => true,
394
+ "rewrite" => [
395
+ "with_front" => true
396
+ ],
397
+ "cptp_permalink_structure" => "%post_id%"
398
+ )
399
+ );
400
+ ```
401
+
402
+
403
+ ## Installation
404
+
405
+ * Download the custom-post-type-permalinks.zip file to your computer.
406
+ * Unzip the file.
407
+ * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
408
+ * Activate the plugin through the 'Plugins' menu in WordPress.
409
+
410
+ That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
411
+
412
+
413
+ ## Screenshots
414
+
415
+ * screenshot-1.png
416
+
417
+
418
+ ## Changelog
419
+
420
  ### 3.1.3
421
 
422
+ * Test for WordPress 4.8.
423
+ * Bug fix for attachment link.
424
+
425
  ### 3.1.1
426
 
427
+ * Bug fix in CPTP_Module_Setting::upgrader_process_complete.
428
+
429
  ### 3.1.0
430
 
431
+ * Add filter 'CPTP_date_front'.
432
+ * Fix sort term by `wp_list_sort` .
433
+
434
  ### 3.0.0
435
 
436
+ * Admin notice on update plugin.
437
+ * Large bug fix.
438
+ * no_taxonomy_structure bug fix.
439
+ * Add default value for options.
440
+
441
+ ### 2.2.0
442
+
443
+ * add `CPTP_Util::get_no_taxonomy_structure`.
444
+
445
+ ### 2.1.3
446
+
447
+ * Set `no_taxonomy_structure` default true.
448
+
449
+ ### 2.1.2
450
+
451
+ * `rewirte => false` post type support.
452
+
453
+ ### 2.1.0
454
+
455
+ * Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
456
+ * Not create taxonomy rewrite rule when `rewrite` is `false`.
457
+
458
+ ### 2.0.2
459
+
460
+ * pointer html bug fix.
461
+
462
+ ### 2.0.0
463
+
464
+ * `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)
465
+ * Replace wp_get_post_terms by get_the_terms. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
466
+ * Fix bug register_uninstall_hook called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
467
+
468
+ ### 1.5.4
469
+
470
+ * Fixed removed parent post problem.
471
+
472
+
473
+ ### 1.5.3
474
+
475
+ * readme fix.
476
+
477
+ ### 1.5.0
478
+
479
+ * Tested for 4.5.
480
+ * Add filter CPTP_set_{$module_name}_module.
481
+
482
+
483
  ### 1.4.0
484
 
485
+ * Fix Translation Problem.
486
+
487
+
488
  ### 1.3.1
489
 
490
+ * bugfix `wp_get_archives`.
491
+
492
  ### 1.3.0
493
 
494
+ * bugfix for polylang.
495
+
496
  ### 1.2.0
497
 
498
+ * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
499
+ * Add action `CPTP_registered_modules`.
500
+
501
  ### 1.1.0
502
 
503
+ * WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
504
+
505
  ### 1.0.5
506
 
507
+ * admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
508
+ * Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
509
+
510
  ### 1.0.4
511
 
512
+ * option bug fix.
513
+
514
  ### 1.0.3
515
 
516
+ * add category rule, if only attached category to post type.
517
+
518
  ### 1.0.2
519
 
520
+ * category slug bug fix.
521
+
522
  ### 1.0.0
523
 
524
+ * Set Permalink enable register_post_type.
525
+ * Enable add post type query to taxonomy archives.
526
+ * Use Class Autoloader.
527
+ * Create Rewrite Rule on `wp_loaded` action.
528
+ * WordPress Code Format Fix.
529
+ * CPTP_Module_Permalink Bug Fix.
530
+ * Bug Fix.
531
+ * Use Semantic Versioning.
532
+ * Date Structure Fix.
533
+ * Use Category Base.
534
+
535
  ### 0.9.7
536
 
537
+ * Adding date slug only conflicting %post_id%.
538
+ * Change taxonomy link rewrite rule. Use post_type.
539
+ * Can change template include custom taxonomy.
540
+
541
  ### 0.9.6
542
 
543
+ * Category and author.
544
+ * French Transration. Thanks Geoffrey!
545
+ * Hierarchial Term Fix.
546
+
547
  ### 0.9.5.6
548
 
549
+ * Strict Standard Error Fix.
550
+
551
  ### 0.9.5.4
552
 
553
+ * archive link bug fix.
554
+ * Tested Up 3.9
555
+
556
  ### 0.9.5.3
557
 
558
+ * “/”bug fix.
559
+ * taxonomy tmplate bug fix.
560
+
561
  ### 0.9.5.2
562
 
563
+ * Archives Rewrite Fix.
564
+
565
  ### 0.9.5.1
566
 
567
+ * Admin Bug Fix.
568
+
569
  ### 0.9.5
570
 
571
+ * Big change plugin architecture.
572
+ * Show has_archive, with_front.
573
+
574
  ### 0.9.4
575
 
576
+ * Internal release.
577
+
578
  ### 0.9.3.3
579
 
580
+ * has_archive Bug Fix.
581
+ * Fixed a bug in the link, including the extension.
582
+
583
  ### 0.9.3.2
584
 
585
+ * wp_get_archives Bug Fix.
586
+
587
  ### 0.9.3.1
588
 
589
+ * Tested 3.6
590
+ * Bug Fix.
591
+
592
+
593
  ### 0.9.3
594
 
595
+ * Admin page fix.
596
+ * slngle pageing link fix.
597
+ * Add Russian translation.
598
+
599
+
600
  ### 0.9
601
 
602
+ * Add custom post type archive only has_archive->true
603
+ * Change method name.
604
+ * Change hook custom post link.
605
+ * Use Slug in wp_get_archive().
606
+ * Fix attachment link.
607
+
608
+
609
  ### 0.8.7
610
 
611
+ * Translate Bug Fix.
612
+
613
  ### 0.8.6
614
 
615
+ * Paging Bug Fix.
616
+ * Commnent Paging.
617
+ * Show pointer.
618
+ *
619
+
620
  ### 0.8.1
621
 
622
+ * Bug Fix.
623
+
624
  ### 0.7.9.1
625
 
626
+ * Support Comment permalink.
627
+ * Small change in setting page.
628
+ * Change default value.
629
+ * Bug Fix.
630
+
631
  ### 0.7.8
632
 
633
+ * Bug fix.
634
+
635
+
636
  ### 0.7.7
637
 
638
+ * Bug fix.
639
+
640
  ### 0.7.6
641
 
642
+ * Add parent's slug to hierarchical post type.
643
+
644
+
645
  ### 0.7.5
646
 
647
+ * Add ability to disable to change custom taxonomy archive's permalink.
648
+
649
+
650
  ### 0.7.4
651
 
652
+ * Bug fix taxonomy rewrite.
653
+
654
+
655
  ### 0.7.3
656
 
657
+ * Changed part for saving the data.
658
+
659
  ### 0.7.2
660
 
661
+ * Reweite bug fix.
662
+ * Prewview bug fix.
663
+
664
  ### 0.7.1
665
 
666
+ * Bug fix.
667
+
668
  ### 0.7
669
 
670
+ * Add %{taxonomy}% tag.
671
+ * A large number of Bug Fix.
672
+ * Change Setting Page. Use Setting API.
673
+
674
+
675
  ### 0.6.2
676
 
677
+ * Fix %author% tag.
678
+
679
  ### 0.6
680
 
681
+ * First release on wordpress.org
readme.txt CHANGED
@@ -1,292 +1,585 @@
1
- === Custom Post Type Permalinks ===
2
- Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
3
- Donate link: https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
4
- Tags: permalink,permalinks,custom post type,custom taxonomy,cms
5
- Requires at least: 4.3
6
- Tested up to: 4.9
7
- Stable tag: 3.1.5
8
- License: GPLv2 or Later
9
-
10
- Edit the permalink of custom post type.
11
-
12
- == Description ==
13
-
14
- Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
15
-
16
- Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
17
-
18
- And support wp_get_archives( "post_type=foo" ).
19
-
20
- [This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
21
-
22
- Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
23
-
24
-
25
- = Translators =
26
- * Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
27
- * French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
28
- * Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
29
-
30
- = Also checkout =
31
-
32
- * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
33
-
34
-
35
- == Setting on Code ==
36
-
37
- Example:
38
-
39
- `
40
- register_post_type( 'foo',
41
- array(
42
- "public" => true,
43
- 'has_archive' => true,
44
- "rewrite" => [
45
- "with_front" => true
46
- ],
47
- "cptp_permalink_structure" => "%post_id%"
48
- )
49
- );
50
- `
51
-
52
-
53
- == Installation ==
54
-
55
- * Download the custom-post-type-permalinks.zip file to your computer.
56
- * Unzip the file.
57
- * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
58
- * Activate the plugin through the 'Plugins' menu in WordPress.
59
-
60
- That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
61
-
62
-
63
- == Screenshots ==
64
-
65
- * screenshot-1.png
66
-
67
-
68
- == Changelog ==
69
-
70
- = 3.1.4 =
71
- * Test for WordPress 4.9.
72
- * PHPCS fix.
73
-
74
- = 3.1.3 =
75
- * Test for WordPress 4.8.
76
- * Bug fix for attachment link.
77
-
78
- = 3.1.1 =
79
- * Bug fix in CPTP_Module_Setting::upgrader_process_complete.
80
-
81
- = 3.1.0 =
82
- * Add filter 'CPTP_date_front'.
83
- * Fix sort term by `wp_list_sort` .
84
-
85
- = 3.0.0 =
86
- * Admin notice on update plugin.
87
- * Large bug fix.
88
- * no_taxonomy_structure bug fix.
89
- * Add default value for options.
90
-
91
- = 2.2.0 =
92
-
93
- * add `CPTP_Util::get_no_taxonomy_structure`.
94
-
95
- = 2.1.3 =
96
-
97
- * Set `no_taxonomy_structure` default true.
98
-
99
- = 2.1.2 =
100
-
101
- * `rewirte => false` post type support.
102
-
103
- = 2.1.0 =
104
-
105
- * Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
106
- * Not create taxonomy rewrite rule when `rewrite` is `false`.
107
-
108
- = 2.0.2 =
109
-
110
- * pointer html bug fix.
111
-
112
- = 2.0.0 =
113
-
114
- * `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)
115
- * Replace wp_get_post_terms by get_the_terms. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
116
- * Fix bug register_uninstall_hook called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
117
-
118
- = 1.5.4 =
119
-
120
- * Fixed removed parent post problem.
121
-
122
-
123
- = 1.5.3 =
124
-
125
- * readme fix.
126
-
127
- = 1.5.0 =
128
-
129
- * Tested for 4.5.
130
- * Add filter CPTP_set_{$module_name}_module.
131
-
132
-
133
- = 1.4.0 =
134
- * Fix Translation Problem.
135
-
136
-
137
- = 1.3.1 =
138
- * bugfix `wp_get_archives`.
139
-
140
- = 1.3.0 =
141
- * bugfix for polylang.
142
-
143
- = 1.2.0 =
144
- * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
145
- * Add action `CPTP_registered_modules`.
146
-
147
- = 1.1.0 =
148
- * WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
149
-
150
- = 1.0.5 =
151
- * admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
152
- * Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
153
-
154
- = 1.0.4 =
155
- * option bug fix.
156
-
157
- = 1.0.3 =
158
- * add category rule, if only attached category to post type.
159
-
160
- = 1.0.2 =
161
- * category slug bug fix.
162
-
163
- = 1.0.0 =
164
- * Set Permalink enable register_post_type.
165
- * Enable add post type query to taxonomy archives.
166
- * Use Class Autoloader.
167
- * Create Rewrite Rule on `wp_loaded` action.
168
- * WordPress Code Format Fix.
169
- * CPTP_Module_Permalink Bug Fix.
170
- * Bug Fix.
171
- * Use Semantic Versioning.
172
- * Date Structure Fix.
173
- * Use Category Base.
174
-
175
- = 0.9.7 =
176
- * Adding date slug only conflicting %post_id%.
177
- * Change taxonomy link rewrite rule. Use post_type.
178
- * Can change template include custom taxonomy.
179
-
180
- = 0.9.6 =
181
- * Category and author.
182
- * French Transration. Thanks Geoffrey!
183
- * Hierarchial Term Fix.
184
-
185
- = 0.9.5.6 =
186
- * Strict Standard Error Fix.
187
-
188
- = 0.9.5.4 =
189
- * archive link bug fix.
190
- * Tested Up 3.9
191
-
192
- = 0.9.5.3 =
193
- * “/”bug fix.
194
- * taxonomy tmplate bug fix.
195
-
196
- = 0.9.5.2 =
197
- * Archives Rewrite Fix.
198
-
199
- = 0.9.5.1 =
200
- * Admin Bug Fix.
201
-
202
- = 0.9.5 =
203
- * Big change plugin architecture.
204
- * Show has_archive, with_front.
205
-
206
- = 0.9.4 =
207
- * Internal release.
208
-
209
- = 0.9.3.3 =
210
- * has_archive Bug Fix.
211
- * Fixed a bug in the link, including the extension.
212
-
213
- = 0.9.3.2 =
214
- * wp_get_archives Bug Fix.
215
-
216
- = 0.9.3.1 =
217
- * Tested 3.6
218
- * Bug Fix.
219
-
220
-
221
- = 0.9.3 =
222
- * Admin page fix.
223
- * slngle pageing link fix.
224
- * Add Russian translation.
225
-
226
-
227
- = 0.9 =
228
- * Add custom post type archive only has_archive->true
229
- * Change method name.
230
- * Change hook custom post link.
231
- * Use Slug in wp_get_archive().
232
- * Fix attachment link.
233
-
234
-
235
- = 0.8.7 =
236
- * Translate Bug Fix.
237
-
238
- = 0.8.6 =
239
- * Paging Bug Fix.
240
- * Commnent Paging.
241
- * Show pointer.
242
- *
243
-
244
- = 0.8.1 =
245
- * Bug Fix.
246
-
247
- = 0.7.9.1 =
248
- * Support Comment permalink.
249
- * Small change in setting page.
250
- * Change default value.
251
- * Bug Fix.
252
-
253
- = 0.7.8 =
254
- * Bug fix.
255
-
256
-
257
- = 0.7.7 =
258
- * Bug fix.
259
-
260
- = 0.7.6 =
261
- * Add parent's slug to hierarchical post type.
262
-
263
-
264
- = 0.7.5 =
265
- * Add ability to disable to change custom taxonomy archive's permalink.
266
-
267
-
268
- = 0.7.4 =
269
- * Bug fix taxonomy rewrite.
270
-
271
-
272
- = 0.7.3 =
273
- * Changed part for saving the data.
274
-
275
- = 0.7.2 =
276
- * Reweite bug fix.
277
- * Prewview bug fix.
278
-
279
- = 0.7.1 =
280
- * Bug fix.
281
-
282
- = 0.7 =
283
- * Add %{taxonomy}% tag.
284
- * A large number of Bug Fix.
285
- * Change Setting Page. Use Setting API.
286
-
287
-
288
- = 0.6.2 =
289
- * Fix %author% tag.
290
-
291
- = 0.6 =
292
- * First release on wordpress.org
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Type Permalinks ===
2
+ Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
3
+ Donate link: https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
4
+ Tags: permalink,permalinks,custom post type,custom taxonomy,cms
5
+ Requires at least: 4.3
6
+ Tested up to: 4.9
7
+ Requires PHP: 5.3
8
+ Stable tag: 3.2.0
9
+ License: GPLv2 or Later
10
+
11
+ Edit the permalink of custom post type.
12
+
13
+ == Description ==
14
+
15
+ Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
16
+
17
+ Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
18
+
19
+ And support wp_get_archives( "post_type=foo" ).
20
+
21
+ [This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
22
+
23
+ Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
24
+
25
+
26
+ = Translators =
27
+ * Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
28
+ * French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
29
+ * Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
30
+
31
+ = Also checkout =
32
+
33
+ * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
34
+
35
+
36
+ == Setting on Code ==
37
+
38
+ Example:
39
+
40
+ `
41
+ register_post_type( 'foo',
42
+ array(
43
+ "public" => true,
44
+ 'has_archive' => true,
45
+ "rewrite" => [
46
+ "with_front" => true
47
+ ],
48
+ "cptp_permalink_structure" => "%post_id%"
49
+ )
50
+ );
51
+ `
52
+
53
+
54
+ == Installation ==
55
+
56
+ * Download the custom-post-type-permalinks.zip file to your computer.
57
+ * Unzip the file.
58
+ * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
59
+ * Activate the plugin through the 'Plugins' menu in WordPress.
60
+
61
+ That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
62
+
63
+
64
+ == Screenshots ==
65
+
66
+ * screenshot-1.png
67
+
68
+
69
+ == Changelog ==
70
+
71
+ = 3.1.4 =
72
+ * Test for WordPress 4.9.
73
+ * PHPCS fix.
74
+
75
+ = 3.1.3 =
76
+ * Test for WordPress 4.8.
77
+ * Bug fix for attachment link.
78
+
79
+ = 3.1.1 =
80
+ * Bug fix in CPTP_Module_Setting::upgrader_process_complete.
81
+
82
+ = 3.1.0 =
83
+ * Add filter 'CPTP_date_front'.
84
+ * Fix sort term by `wp_list_sort` .
85
+
86
+ = 3.0.0 =
87
+ * Admin notice on update plugin.
88
+ * Large bug fix.
89
+ * no_taxonomy_structure bug fix.
90
+ * Add default value for options.
91
+
92
+ = 2.2.0 =
93
+
94
+ * add `CPTP_Util::get_no_taxonomy_structure`.
95
+
96
+ = 2.1.3 =
97
+
98
+ * Set `no_taxonomy_structure` default true.
99
+
100
+ = 2.1.2 =
101
+
102
+ * `rewirte => false` post type support.
103
+
104
+ = 2.1.0 =
105
+
106
+ * Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
107
+ * Not create taxonomy rewrite rule when `rewrite` is `false`.
108
+
109
+ = 2.0.2 =
110
+
111
+ * pointer html bug fix.
112
+
113
+ = 2.0.0 =
114
+
115
+ * `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)
116
+ * Replace wp_get_post_terms by get_the_terms. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
117
+ * Fix bug register_uninstall_hook called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
118
+
119
+ = 1.5.4 =
120
+
121
+ * Fixed removed parent post problem.
122
+
123
+
124
+ = 1.5.3 =
125
+
126
+ * readme fix.
127
+
128
+ = 1.5.0 =
129
+
130
+ * Tested for 4.5.
131
+ * Add filter CPTP_set_{$module_name}_module.
132
+
133
+
134
+ = 1.4.0 =
135
+ * Fix Translation Problem.
136
+
137
+
138
+ = 1.3.1 =
139
+ * bugfix `wp_get_archives`.
140
+
141
+ = 1.3.0 =
142
+ * bugfix for polylang.
143
+
144
+ = 1.2.0 =
145
+ * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
146
+ * Add action `CPTP_registered_modules`.
147
+
148
+ = 1.1.0 =
149
+ * WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
150
+
151
+ = 1.0.5 =
152
+ * admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
153
+ * Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
154
+
155
+ = 1.0.4 =
156
+ * option bug fix.
157
+
158
+ = 1.0.3 =
159
+ * add category rule, if only attached category to post type.
160
+
161
+ = 1.0.2 =
162
+ * category slug bug fix.
163
+
164
+ = 1.0.0 =
165
+ * Set Permalink enable register_post_type.
166
+ * Enable add post type query to taxonomy archives.
167
+ * Use Class Autoloader.
168
+ * Create Rewrite Rule on `wp_loaded` action.
169
+ * WordPress Code Format Fix.
170
+ * CPTP_Module_Permalink Bug Fix.
171
+ * Bug Fix.
172
+ * Use Semantic Versioning.
173
+ * Date Structure Fix.
174
+ * Use Category Base.
175
+
176
+ = 0.9.7 =
177
+ * Adding date slug only conflicting %post_id%.
178
+ * Change taxonomy link rewrite rule. Use post_type.
179
+ * Can change template include custom taxonomy.
180
+
181
+ = 0.9.6 =
182
+ * Category and author.
183
+ * French Transration. Thanks Geoffrey!
184
+ * Hierarchial Term Fix.
185
+
186
+ = 0.9.5.6 =
187
+ * Strict Standard Error Fix.
188
+
189
+ = 0.9.5.4 =
190
+ * archive link bug fix.
191
+ * Tested Up 3.9
192
+
193
+ = 0.9.5.3 =
194
+ * “/”bug fix.
195
+ * taxonomy tmplate bug fix.
196
+
197
+ = 0.9.5.2 =
198
+ * Archives Rewrite Fix.
199
+
200
+ = 0.9.5.1 =
201
+ * Admin Bug Fix.
202
+
203
+ = 0.9.5 =
204
+ * Big change plugin architecture.
205
+ * Show has_archive, with_front.
206
+
207
+ = 0.9.4 =
208
+ * Internal release.
209
+
210
+ = 0.9.3.3 =
211
+ * has_archive Bug Fix.
212
+ * Fixed a bug in the link, including the extension.
213
+
214
+ = 0.9.3.2 =
215
+ * wp_get_archives Bug Fix.
216
+
217
+ = 0.9.3.1 =
218
+ * Tested 3.6
219
+ * Bug Fix.
220
+
221
+
222
+ = 0.9.3 =
223
+ * Admin page fix.
224
+ * slngle pageing link fix.
225
+ * Add Russian translation.
226
+
227
+
228
+ = 0.9 =
229
+ * Add custom post type archive only has_archive->true
230
+ * Change method name.
231
+ * Change hook custom post link.
232
+ * Use Slug in wp_get_archive().
233
+ * Fix attachment link.
234
+
235
+
236
+ = 0.8.7 =
237
+ * Translate Bug Fix.
238
+
239
+ = 0.8.6 =
240
+ * Paging Bug Fix.
241
+ * Commnent Paging.
242
+ * Show pointer.
243
+ *
244
+
245
+ = 0.8.1 =
246
+ * Bug Fix.
247
+
248
+ = 0.7.9.1 =
249
+ * Support Comment permalink.
250
+ * Small change in setting page.
251
+ * Change default value.
252
+ * Bug Fix.
253
+
254
+ = 0.7.8 =
255
+ * Bug fix.
256
+
257
+
258
+ = 0.7.7 =
259
+ * Bug fix.
260
+
261
+ = 0.7.6 =
262
+ * Add parent's slug to hierarchical post type.
263
+
264
+
265
+ = 0.7.5 =
266
+ * Add ability to disable to change custom taxonomy archive's permalink.
267
+
268
+
269
+ = 0.7.4 =
270
+ * Bug fix taxonomy rewrite.
271
+
272
+
273
+ = 0.7.3 =
274
+ * Changed part for saving the data.
275
+
276
+ = 0.7.2 =
277
+ * Reweite bug fix.
278
+ * Prewview bug fix.
279
+
280
+ = 0.7.1 =
281
+ * Bug fix.
282
+
283
+ = 0.7 =
284
+ * Add %{taxonomy}% tag.
285
+ * A large number of Bug Fix.
286
+ * Change Setting Page. Use Setting API.
287
+
288
+
289
+ = 0.6.2 =
290
+ * Fix %author% tag.
291
+
292
+ = 0.6 =
293
+ * First release on wordpress.org
294
+ === Custom Post Type Permalinks ===
295
+ Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
296
+ Donate link: https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
297
+ Tags: permalink,permalinks,custom post type,custom taxonomy,cms
298
+ Requires at least: 4.3
299
+ Tested up to: 4.9
300
+ Stable tag: 3.2.0
301
+ License: GPLv2 or Later
302
+
303
+ Edit the permalink of custom post type.
304
+
305
+ == Description ==
306
+
307
+ Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
308
+
309
+ Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
310
+
311
+ And support wp_get_archives( "post_type=foo" ).
312
+
313
+ [This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
314
+
315
+ Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
316
+
317
+
318
+ = Translators =
319
+ * Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
320
+ * French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
321
+ * Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
322
+
323
+ = Also checkout =
324
+
325
+ * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
326
+
327
+
328
+ == Setting on Code ==
329
+
330
+ Example:
331
+
332
+ `
333
+ register_post_type( 'foo',
334
+ array(
335
+ "public" => true,
336
+ 'has_archive' => true,
337
+ "rewrite" => [
338
+ "with_front" => true
339
+ ],
340
+ "cptp_permalink_structure" => "%post_id%"
341
+ )
342
+ );
343
+ `
344
+
345
+
346
+ == Installation ==
347
+
348
+ * Download the custom-post-type-permalinks.zip file to your computer.
349
+ * Unzip the file.
350
+ * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
351
+ * Activate the plugin through the 'Plugins' menu in WordPress.
352
+
353
+ That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
354
+
355
+
356
+ == Screenshots ==
357
+
358
+ * screenshot-1.png
359
+
360
+
361
+ == Changelog ==
362
+
363
+ = 3.1.4 =
364
+ * Test for WordPress 4.9.
365
+ * PHPCS fix.
366
+
367
+ = 3.1.3 =
368
+ * Test for WordPress 4.8.
369
+ * Bug fix for attachment link.
370
+
371
+ = 3.1.1 =
372
+ * Bug fix in CPTP_Module_Setting::upgrader_process_complete.
373
+
374
+ = 3.1.0 =
375
+ * Add filter 'CPTP_date_front'.
376
+ * Fix sort term by `wp_list_sort` .
377
+
378
+ = 3.0.0 =
379
+ * Admin notice on update plugin.
380
+ * Large bug fix.
381
+ * no_taxonomy_structure bug fix.
382
+ * Add default value for options.
383
+
384
+ = 2.2.0 =
385
+
386
+ * add `CPTP_Util::get_no_taxonomy_structure`.
387
+
388
+ = 2.1.3 =
389
+
390
+ * Set `no_taxonomy_structure` default true.
391
+
392
+ = 2.1.2 =
393
+
394
+ * `rewirte => false` post type support.
395
+
396
+ = 2.1.0 =
397
+
398
+ * Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
399
+ * Not create taxonomy rewrite rule when `rewrite` is `false`.
400
+
401
+ = 2.0.2 =
402
+
403
+ * pointer html bug fix.
404
+
405
+ = 2.0.0 =
406
+
407
+ * `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)
408
+ * Replace wp_get_post_terms by get_the_terms. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
409
+ * Fix bug register_uninstall_hook called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
410
+
411
+ = 1.5.4 =
412
+
413
+ * Fixed removed parent post problem.
414
+
415
+
416
+ = 1.5.3 =
417
+
418
+ * readme fix.
419
+
420
+ = 1.5.0 =
421
+
422
+ * Tested for 4.5.
423
+ * Add filter CPTP_set_{$module_name}_module.
424
+
425
+
426
+ = 1.4.0 =
427
+ * Fix Translation Problem.
428
+
429
+
430
+ = 1.3.1 =
431
+ * bugfix `wp_get_archives`.
432
+
433
+ = 1.3.0 =
434
+ * bugfix for polylang.
435
+
436
+ = 1.2.0 =
437
+ * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
438
+ * Add action `CPTP_registered_modules`.
439
+
440
+ = 1.1.0 =
441
+ * WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
442
+
443
+ = 1.0.5 =
444
+ * admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
445
+ * Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
446
+
447
+ = 1.0.4 =
448
+ * option bug fix.
449
+
450
+ = 1.0.3 =
451
+ * add category rule, if only attached category to post type.
452
+
453
+ = 1.0.2 =
454
+ * category slug bug fix.
455
+
456
+ = 1.0.0 =
457
+ * Set Permalink enable register_post_type.
458
+ * Enable add post type query to taxonomy archives.
459
+ * Use Class Autoloader.
460
+ * Create Rewrite Rule on `wp_loaded` action.
461
+ * WordPress Code Format Fix.
462
+ * CPTP_Module_Permalink Bug Fix.
463
+ * Bug Fix.
464
+ * Use Semantic Versioning.
465
+ * Date Structure Fix.
466
+ * Use Category Base.
467
+
468
+ = 0.9.7 =
469
+ * Adding date slug only conflicting %post_id%.
470
+ * Change taxonomy link rewrite rule. Use post_type.
471
+ * Can change template include custom taxonomy.
472
+
473
+ = 0.9.6 =
474
+ * Category and author.
475
+ * French Transration. Thanks Geoffrey!
476
+ * Hierarchial Term Fix.
477
+
478
+ = 0.9.5.6 =
479
+ * Strict Standard Error Fix.
480
+
481
+ = 0.9.5.4 =
482
+ * archive link bug fix.
483
+ * Tested Up 3.9
484
+
485
+ = 0.9.5.3 =
486
+ * “/”bug fix.
487
+ * taxonomy tmplate bug fix.
488
+
489
+ = 0.9.5.2 =
490
+ * Archives Rewrite Fix.
491
+
492
+ = 0.9.5.1 =
493
+ * Admin Bug Fix.
494
+
495
+ = 0.9.5 =
496
+ * Big change plugin architecture.
497
+ * Show has_archive, with_front.
498
+
499
+ = 0.9.4 =
500
+ * Internal release.
501
+
502
+ = 0.9.3.3 =
503
+ * has_archive Bug Fix.
504
+ * Fixed a bug in the link, including the extension.
505
+
506
+ = 0.9.3.2 =
507
+ * wp_get_archives Bug Fix.
508
+
509
+ = 0.9.3.1 =
510
+ * Tested 3.6
511
+ * Bug Fix.
512
+
513
+
514
+ = 0.9.3 =
515
+ * Admin page fix.
516
+ * slngle pageing link fix.
517
+ * Add Russian translation.
518
+
519
+
520
+ = 0.9 =
521
+ * Add custom post type archive only has_archive->true
522
+ * Change method name.
523
+ * Change hook custom post link.
524
+ * Use Slug in wp_get_archive().
525
+ * Fix attachment link.
526
+
527
+
528
+ = 0.8.7 =
529
+ * Translate Bug Fix.
530
+
531
+ = 0.8.6 =
532
+ * Paging Bug Fix.
533
+ * Commnent Paging.
534
+ * Show pointer.
535
+ *
536
+
537
+ = 0.8.1 =
538
+ * Bug Fix.
539
+
540
+ = 0.7.9.1 =
541
+ * Support Comment permalink.
542
+ * Small change in setting page.
543
+ * Change default value.
544
+ * Bug Fix.
545
+
546
+ = 0.7.8 =
547
+ * Bug fix.
548
+
549
+
550
+ = 0.7.7 =
551
+ * Bug fix.
552
+
553
+ = 0.7.6 =
554
+ * Add parent's slug to hierarchical post type.
555
+
556
+
557
+ = 0.7.5 =
558
+ * Add ability to disable to change custom taxonomy archive's permalink.
559
+
560
+
561
+ = 0.7.4 =
562
+ * Bug fix taxonomy rewrite.
563
+
564
+
565
+ = 0.7.3 =
566
+ * Changed part for saving the data.
567
+
568
+ = 0.7.2 =
569
+ * Reweite bug fix.
570
+ * Prewview bug fix.
571
+
572
+ = 0.7.1 =
573
+ * Bug fix.
574
+
575
+ = 0.7 =
576
+ * Add %{taxonomy}% tag.
577
+ * A large number of Bug Fix.
578
+ * Change Setting Page. Use Setting API.
579
+
580
+
581
+ = 0.6.2 =
582
+ * Fix %author% tag.
583
+
584
+ = 0.6 =
585
+ * First release on wordpress.org