Version Description
- Fix readme.txt
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 3.2.2 |
Comparing to | |
See all releases |
Code changes from version 3.2.1 to 3.2.2
- custom-post-type-permalinks.php +2 -2
- readme.md +31 -30
- readme.txt +76 -25
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.2.
|
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.
|
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.2
|
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.2
|
15 |
*/
|
16 |
|
17 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
readme.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
# Custom Post Type Permalinks
|
2 |
-
Donate link: https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX
|
3 |
|
4 |
Edit the permalink of custom post type.
|
5 |
|
@@ -10,8 +9,8 @@ Edit the permalink of custom post type.
|
|
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 |
-
[![
|
14 |
-
|
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
|
@@ -20,11 +19,11 @@ Custom Post Type Permalinks allow you edit the permalink structure of custom pos
|
|
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(
|
24 |
|
25 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
26 |
|
27 |
-
Donation: Please send [
|
28 |
|
29 |
|
30 |
### Translators
|
@@ -42,18 +41,18 @@ Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc
|
|
42 |
|
43 |
Example:
|
44 |
|
45 |
-
|
46 |
register_post_type( 'foo',
|
47 |
array(
|
48 |
-
|
49 |
'has_archive' => true,
|
50 |
-
|
51 |
"with_front" => true
|
52 |
-
|
53 |
-
|
54 |
)
|
55 |
);
|
56 |
-
|
57 |
|
58 |
|
59 |
## Installation
|
@@ -73,6 +72,9 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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.
|
@@ -89,11 +91,11 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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
|
97 |
* Fix sort term by `wp_list_sort` .
|
98 |
|
99 |
### 3.0.0
|
@@ -109,7 +111,7 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
109 |
|
110 |
### 2.1.3
|
111 |
|
112 |
-
* Set `no_taxonomy_structure` default true
|
113 |
|
114 |
### 2.1.2
|
115 |
|
@@ -127,9 +129,8 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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
|
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.
|
@@ -142,7 +143,7 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
142 |
### 1.5.0
|
143 |
|
144 |
* Tested for 4.5.
|
145 |
-
* Add filter CPTP_set_{$module_name}_module
|
146 |
|
147 |
|
148 |
### 1.4.0
|
@@ -186,12 +187,12 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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.
|
@@ -199,10 +200,9 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
199 |
|
200 |
### 0.9.7
|
201 |
|
202 |
-
* Adding date slug only conflicting
|
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.
|
@@ -234,7 +234,7 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
234 |
### 0.9.5
|
235 |
|
236 |
* Big change plugin architecture.
|
237 |
-
* Show has_archive
|
238 |
|
239 |
### 0.9.4
|
240 |
|
@@ -242,12 +242,12 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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 |
|
@@ -264,10 +264,11 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
264 |
|
265 |
### 0.9
|
266 |
|
267 |
-
|
|
|
268 |
* Change method name.
|
269 |
* Change hook custom post link.
|
270 |
-
* Use Slug in wp_get_archive()
|
271 |
* Fix attachment link.
|
272 |
|
273 |
|
@@ -332,14 +333,14 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
332 |
|
333 |
### 0.7
|
334 |
|
335 |
-
* Add
|
336 |
* A large number of Bug Fix.
|
337 |
* Change Setting Page. Use Setting API.
|
338 |
|
339 |
|
340 |
### 0.6.2
|
341 |
|
342 |
-
* Fix
|
343 |
|
344 |
### 0.6
|
345 |
|
1 |
# Custom Post Type Permalinks
|
|
|
2 |
|
3 |
Edit the permalink of custom post type.
|
4 |
|
9 |
[![Tested up](https://img.shields.io/wordpress/v/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
10 |
[![wp.org rating](https://img.shields.io/wordpress/plugin/r/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
11 |
[![Build Status](https://travis-ci.org/torounit/custom-post-type-permalinks.svg)](https://travis-ci.org/torounit/custom-post-type-permalinks)
|
12 |
+
[![Donate](https://img.shields.io/badge/donate-paypal-yellow.svg)](https://www.paypal.me/torounit)
|
13 |
+
|
14 |
[![](https://ps.w.org/custom-post-type-permalinks/assets/banner-1544x500.png?rev=1044335)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
15 |
|
16 |
## Description
|
19 |
|
20 |
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
21 |
|
22 |
+
And support `wp_get_archives( 'post_type=foo' )`.
|
23 |
|
24 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
25 |
|
26 |
+
Donation: Please send [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV) or [Paypal](https://www.paypal.me/torounit)
|
27 |
|
28 |
|
29 |
### Translators
|
41 |
|
42 |
Example:
|
43 |
|
44 |
+
```php
|
45 |
register_post_type( 'foo',
|
46 |
array(
|
47 |
+
'public' => true,
|
48 |
'has_archive' => true,
|
49 |
+
'rewrite' => array(
|
50 |
"with_front" => true
|
51 |
+
),
|
52 |
+
'cptp_permalink_structure' => '%post_id%'
|
53 |
)
|
54 |
);
|
55 |
+
```
|
56 |
|
57 |
|
58 |
## Installation
|
72 |
|
73 |
## Changelog
|
74 |
|
75 |
+
### 3.2.2
|
76 |
+
* Fix readme.txt
|
77 |
+
|
78 |
### 3.2.0
|
79 |
* Support only public post type.
|
80 |
* Add `CPTP_is_rewrite_supported_by_${post_type}` and `CPTP_is_rewrite_supported` filter.
|
91 |
|
92 |
### 3.1.1
|
93 |
|
94 |
+
* Bug fix in `CPTP_Module_Setting::upgrader_process_complete`.
|
95 |
|
96 |
### 3.1.0
|
97 |
|
98 |
+
* Add filter `CPTP_date_front`.
|
99 |
* Fix sort term by `wp_list_sort` .
|
100 |
|
101 |
### 3.0.0
|
111 |
|
112 |
### 2.1.3
|
113 |
|
114 |
+
* Set `no_taxonomy_structure` default `true`.
|
115 |
|
116 |
### 2.1.2
|
117 |
|
129 |
### 2.0.0
|
130 |
|
131 |
* `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)
|
132 |
+
* Replace `wp_get_post_terms` by `get_the_terms`. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
|
133 |
+
* Fix bug `register_uninstall_hook` called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
|
|
|
134 |
### 1.5.4
|
135 |
|
136 |
* Fixed removed parent post problem.
|
143 |
### 1.5.0
|
144 |
|
145 |
* Tested for 4.5.
|
146 |
+
* Add filter `CPTP_set_{$module_name}_module`.
|
147 |
|
148 |
|
149 |
### 1.4.0
|
187 |
|
188 |
### 1.0.0
|
189 |
|
190 |
+
* Set Permalink enable `register_post_type`.
|
191 |
* Enable add post type query to taxonomy archives.
|
192 |
* Use Class Autoloader.
|
193 |
* Create Rewrite Rule on `wp_loaded` action.
|
194 |
* WordPress Code Format Fix.
|
195 |
+
* `CPTP_Module_Permalink` Bug Fix.
|
196 |
* Bug Fix.
|
197 |
* Use Semantic Versioning.
|
198 |
* Date Structure Fix.
|
200 |
|
201 |
### 0.9.7
|
202 |
|
203 |
+
* Adding date slug only conflicting `%post_id%`.
|
204 |
+
* Change taxonomy link rewrite rule. Use `post_type`.
|
205 |
* Can change template include custom taxonomy.
|
|
|
206 |
### 0.9.6
|
207 |
|
208 |
* Category and author.
|
234 |
### 0.9.5
|
235 |
|
236 |
* Big change plugin architecture.
|
237 |
+
* Show `has_archive`, `with_front`.
|
238 |
|
239 |
### 0.9.4
|
240 |
|
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 |
|
264 |
|
265 |
### 0.9
|
266 |
|
267 |
+
|
268 |
+
* Add custom post type archive only `has_archive` is `true`.
|
269 |
* Change method name.
|
270 |
* Change hook custom post link.
|
271 |
+
* Use Slug in `wp_get_archive()`.
|
272 |
* Fix attachment link.
|
273 |
|
274 |
|
333 |
|
334 |
### 0.7
|
335 |
|
336 |
+
* Add `%{taxonomy}%` tag.
|
337 |
* A large number of Bug Fix.
|
338 |
* Change Setting Page. Use Setting API.
|
339 |
|
340 |
|
341 |
### 0.6.2
|
342 |
|
343 |
+
* Fix `%author%` tag.
|
344 |
|
345 |
### 0.6
|
346 |
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Custom Post Type Permalinks ===
|
2 |
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
-
Donate link: https://www.
|
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.
|
9 |
License: GPLv2 or Later
|
10 |
|
11 |
Edit the permalink of custom post type.
|
@@ -16,11 +16,11 @@ Custom Post Type Permalinks allow you edit the permalink structure of custom pos
|
|
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(
|
20 |
|
21 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
22 |
|
23 |
-
Donation: Please send [
|
24 |
|
25 |
|
26 |
= Translators =
|
@@ -40,12 +40,12 @@ Example:
|
|
40 |
`
|
41 |
register_post_type( 'foo',
|
42 |
array(
|
43 |
-
|
44 |
'has_archive' => true,
|
45 |
-
|
46 |
"with_front" => true
|
47 |
-
|
48 |
-
|
49 |
)
|
50 |
);
|
51 |
`
|
@@ -68,22 +68,34 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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 |
-
|
|
|
81 |
|
82 |
= 3.1.0 =
|
83 |
-
|
|
|
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.
|
@@ -95,7 +107,7 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
95 |
|
96 |
= 2.1.3 =
|
97 |
|
98 |
-
* Set `no_taxonomy_structure` default true
|
99 |
|
100 |
= 2.1.2 =
|
101 |
|
@@ -113,8 +125,8 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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
|
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 |
|
@@ -128,166 +140,205 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
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 |
-
|
|
|
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 |
-
|
178 |
-
*
|
|
|
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
|
206 |
|
207 |
= 0.9.4 =
|
|
|
208 |
* Internal release.
|
209 |
|
210 |
= 0.9.3.3 =
|
211 |
-
|
|
|
212 |
* Fixed a bug in the link, including the extension.
|
213 |
|
214 |
= 0.9.3.2 =
|
215 |
-
|
|
|
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 |
-
|
|
|
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 |
-
|
|
|
285 |
* A large number of Bug Fix.
|
286 |
* Change Setting Page. Use Setting API.
|
287 |
|
288 |
|
289 |
= 0.6.2 =
|
290 |
-
|
|
|
291 |
|
292 |
= 0.6 =
|
|
|
293 |
* First release on wordpress.org
|
1 |
=== Custom Post Type Permalinks ===
|
2 |
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
+
Donate link: https://www.paypal.me/torounit
|
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.2
|
9 |
License: GPLv2 or Later
|
10 |
|
11 |
Edit the permalink 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 [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV) or [Paypal] (https://www.paypal.me/torounit)
|
24 |
|
25 |
|
26 |
= Translators =
|
40 |
`
|
41 |
register_post_type( 'foo',
|
42 |
array(
|
43 |
+
'public' => true,
|
44 |
'has_archive' => true,
|
45 |
+
'rewrite' => array(
|
46 |
"with_front" => true
|
47 |
+
),
|
48 |
+
'cptp_permalink_structure' => '%post_id%'
|
49 |
)
|
50 |
);
|
51 |
`
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 3.2.2 =
|
72 |
+
* Fix readme.txt
|
73 |
+
|
74 |
+
= 3.2.0 =
|
75 |
+
* Support only public post type.
|
76 |
+
* Add `CPTP_is_rewrite_supported_by_${post_type}` and `CPTP_is_rewrite_supported` filter.
|
77 |
+
* Remove post_type query wp_get_archives.
|
78 |
+
|
79 |
= 3.1.4 =
|
80 |
* Test for WordPress 4.9.
|
81 |
* PHPCS fix.
|
82 |
|
83 |
= 3.1.3 =
|
84 |
+
|
85 |
* Test for WordPress 4.8.
|
86 |
* Bug fix for attachment link.
|
87 |
|
88 |
= 3.1.1 =
|
89 |
+
|
90 |
+
* Bug fix in `CPTP_Module_Setting::upgrader_process_complete`.
|
91 |
|
92 |
= 3.1.0 =
|
93 |
+
|
94 |
+
* Add filter `CPTP_date_front`.
|
95 |
* Fix sort term by `wp_list_sort` .
|
96 |
|
97 |
= 3.0.0 =
|
98 |
+
|
99 |
* Admin notice on update plugin.
|
100 |
* Large bug fix.
|
101 |
* no_taxonomy_structure bug fix.
|
107 |
|
108 |
= 2.1.3 =
|
109 |
|
110 |
+
* Set `no_taxonomy_structure` default `true`.
|
111 |
|
112 |
= 2.1.2 =
|
113 |
|
125 |
= 2.0.0 =
|
126 |
|
127 |
* `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)
|
128 |
+
* Replace `wp_get_post_terms` by `get_the_terms`. [fix issue #55](https://github.com/torounit/custom-post-type-permalinks/issues/55)
|
129 |
+
* Fix bug `register_uninstall_hook` called twice on each page. [fix issue #56](https://github.com/torounit/custom-post-type-permalinks/issues/56)
|
130 |
|
131 |
= 1.5.4 =
|
132 |
|
140 |
= 1.5.0 =
|
141 |
|
142 |
* Tested for 4.5.
|
143 |
+
* Add filter `CPTP_set_{$module_name}_module`.
|
144 |
|
145 |
|
146 |
= 1.4.0 =
|
147 |
+
|
148 |
* Fix Translation Problem.
|
149 |
|
150 |
|
151 |
= 1.3.1 =
|
152 |
+
|
153 |
* bugfix `wp_get_archives`.
|
154 |
|
155 |
= 1.3.0 =
|
156 |
+
|
157 |
* bugfix for polylang.
|
158 |
|
159 |
= 1.2.0 =
|
160 |
+
|
161 |
* Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
|
162 |
* Add action `CPTP_registered_modules`.
|
163 |
|
164 |
= 1.1.0 =
|
165 |
+
|
166 |
* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
|
167 |
|
168 |
= 1.0.5 =
|
169 |
+
|
170 |
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
171 |
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|
172 |
|
173 |
= 1.0.4 =
|
174 |
+
|
175 |
* option bug fix.
|
176 |
|
177 |
= 1.0.3 =
|
178 |
+
|
179 |
* add category rule, if only attached category to post type.
|
180 |
|
181 |
= 1.0.2 =
|
182 |
+
|
183 |
* category slug bug fix.
|
184 |
|
185 |
= 1.0.0 =
|
186 |
+
|
187 |
+
* Set Permalink enable `register_post_type`.
|
188 |
* Enable add post type query to taxonomy archives.
|
189 |
* Use Class Autoloader.
|
190 |
* Create Rewrite Rule on `wp_loaded` action.
|
191 |
* WordPress Code Format Fix.
|
192 |
+
* `CPTP_Module_Permalink` Bug Fix.
|
193 |
* Bug Fix.
|
194 |
* Use Semantic Versioning.
|
195 |
* Date Structure Fix.
|
196 |
* Use Category Base.
|
197 |
|
198 |
= 0.9.7 =
|
199 |
+
|
200 |
+
* Adding date slug only conflicting `%post_id%`.
|
201 |
+
* Change taxonomy link rewrite rule. Use `post_type`.
|
202 |
* Can change template include custom taxonomy.
|
203 |
|
204 |
= 0.9.6 =
|
205 |
+
|
206 |
* Category and author.
|
207 |
* French Transration. Thanks Geoffrey!
|
208 |
* Hierarchial Term Fix.
|
209 |
|
210 |
= 0.9.5.6 =
|
211 |
+
|
212 |
* Strict Standard Error Fix.
|
213 |
|
214 |
= 0.9.5.4 =
|
215 |
+
|
216 |
* archive link bug fix.
|
217 |
* Tested Up 3.9
|
218 |
|
219 |
= 0.9.5.3 =
|
220 |
+
|
221 |
* “/”bug fix.
|
222 |
* taxonomy tmplate bug fix.
|
223 |
|
224 |
= 0.9.5.2 =
|
225 |
+
|
226 |
* Archives Rewrite Fix.
|
227 |
|
228 |
= 0.9.5.1 =
|
229 |
+
|
230 |
* Admin Bug Fix.
|
231 |
|
232 |
= 0.9.5 =
|
233 |
+
|
234 |
* Big change plugin architecture.
|
235 |
+
* Show `has_archive`, `with_front`.
|
236 |
|
237 |
= 0.9.4 =
|
238 |
+
|
239 |
* Internal release.
|
240 |
|
241 |
= 0.9.3.3 =
|
242 |
+
|
243 |
+
* `has_archive` Bug Fix.
|
244 |
* Fixed a bug in the link, including the extension.
|
245 |
|
246 |
= 0.9.3.2 =
|
247 |
+
|
248 |
+
* `wp_get_archives` Bug Fix.
|
249 |
|
250 |
= 0.9.3.1 =
|
251 |
+
|
252 |
* Tested 3.6
|
253 |
* Bug Fix.
|
254 |
|
255 |
|
256 |
= 0.9.3 =
|
257 |
+
|
258 |
* Admin page fix.
|
259 |
* slngle pageing link fix.
|
260 |
* Add Russian translation.
|
261 |
|
262 |
|
263 |
= 0.9 =
|
264 |
+
|
265 |
+
* Add custom post type archive only `has_archive` is `true`.
|
266 |
* Change method name.
|
267 |
* Change hook custom post link.
|
268 |
+
* Use Slug in `wp_get_archive()`.
|
269 |
* Fix attachment link.
|
270 |
|
271 |
|
272 |
= 0.8.7 =
|
273 |
+
|
274 |
* Translate Bug Fix.
|
275 |
|
276 |
= 0.8.6 =
|
277 |
+
|
278 |
* Paging Bug Fix.
|
279 |
* Commnent Paging.
|
280 |
* Show pointer.
|
281 |
*
|
282 |
|
283 |
= 0.8.1 =
|
284 |
+
|
285 |
* Bug Fix.
|
286 |
|
287 |
= 0.7.9.1 =
|
288 |
+
|
289 |
* Support Comment permalink.
|
290 |
* Small change in setting page.
|
291 |
* Change default value.
|
292 |
* Bug Fix.
|
293 |
|
294 |
= 0.7.8 =
|
295 |
+
|
296 |
* Bug fix.
|
297 |
|
298 |
|
299 |
= 0.7.7 =
|
300 |
+
|
301 |
* Bug fix.
|
302 |
|
303 |
= 0.7.6 =
|
304 |
+
|
305 |
* Add parent's slug to hierarchical post type.
|
306 |
|
307 |
|
308 |
= 0.7.5 =
|
309 |
+
|
310 |
* Add ability to disable to change custom taxonomy archive's permalink.
|
311 |
|
312 |
|
313 |
= 0.7.4 =
|
314 |
+
|
315 |
* Bug fix taxonomy rewrite.
|
316 |
|
317 |
|
318 |
= 0.7.3 =
|
319 |
+
|
320 |
* Changed part for saving the data.
|
321 |
|
322 |
= 0.7.2 =
|
323 |
+
|
324 |
* Reweite bug fix.
|
325 |
* Prewview bug fix.
|
326 |
|
327 |
= 0.7.1 =
|
328 |
+
|
329 |
* Bug fix.
|
330 |
|
331 |
= 0.7 =
|
332 |
+
|
333 |
+
* Add `%{taxonomy}%` tag.
|
334 |
* A large number of Bug Fix.
|
335 |
* Change Setting Page. Use Setting API.
|
336 |
|
337 |
|
338 |
= 0.6.2 =
|
339 |
+
|
340 |
+
* Fix `%author%` tag.
|
341 |
|
342 |
= 0.6 =
|
343 |
+
|
344 |
* First release on wordpress.org
|