Version Description
- bugfix
wp_get_archives
.
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- CPTP/Module/GetArchives.php +4 -0
- custom-post-type-permalinks.php +2 -2
- readme.md +179 -171
- readme.txt +219 -217
CPTP/Module/GetArchives.php
CHANGED
@@ -83,6 +83,10 @@ class CPTP_Module_GetArchives extends CPTP_Module {
|
|
83 |
return $link;
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
86 |
$c = isset( $this->get_archives_where_r['taxonomy'] ) && is_array( $this->get_archives_where_r['taxonomy'] ) ? $this->get_archives_where_r['taxonomy'] : ''; //[steve]
|
87 |
$t = $this->get_archives_where_r['post_type'];
|
88 |
|
83 |
return $link;
|
84 |
}
|
85 |
|
86 |
+
if ( $this->get_archives_where_r['post_type'] == 'post' ) {
|
87 |
+
return $link;
|
88 |
+
}
|
89 |
+
|
90 |
$c = isset( $this->get_archives_where_r['taxonomy'] ) && is_array( $this->get_archives_where_r['taxonomy'] ) ? $this->get_archives_where_r['taxonomy'] : ''; //[steve]
|
91 |
$t = $this->get_archives_where_r['post_type'];
|
92 |
|
custom-post-type-permalinks.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.torounit.com
|
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
-
Version: 1.3.
|
9 |
Text Domain: cptp
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
@@ -17,7 +17,7 @@ Domain Path: /language/
|
|
17 |
* Custom Post Type Permalinks
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
-
* @version 1.3.
|
21 |
*
|
22 |
*/
|
23 |
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
+
Version: 1.3.1
|
9 |
Text Domain: cptp
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
17 |
* Custom Post Type Permalinks
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
+
* @version 1.3.1
|
21 |
*
|
22 |
*/
|
23 |
|
readme.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
# Custom Post Type Permalinks
|
2 |
-
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
3 |
-
License: GPLv2 or Later
|
4 |
-
|
5 |
-
Edit the permalink of custom post type.
|
6 |
-
|
7 |
|
8 |
[![Build Status](https://travis-ci.org/torounit/custom-post-type-permalinks.svg)](https://travis-ci.org/torounit/custom-post-type-permalinks)
|
9 |
[![](https://img.shields.io/wordpress/plugin/dt/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
@@ -12,242 +12,250 @@ Edit the permalink of custom post type.
|
|
12 |
|
13 |
[![](http://www.torounit.com/wp-content/uploads/2011/11/banner-772x250.png)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
14 |
|
15 |
-
## Description
|
16 |
-
|
17 |
-
Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
|
18 |
-
|
19 |
-
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
20 |
-
|
21 |
-
And support wp_get_archives( "post_type=foo" ).
|
22 |
-
|
23 |
-
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
24 |
-
|
25 |
-
Donation: Please send amazon.co.jp Gift to donate[at]torounit.com.
|
26 |
-
|
27 |
### Translators
|
28 |
|
29 |
-
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
30 |
-
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
31 |
-
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
32 |
-
|
33 |
-
## Setting on Code
|
34 |
-
|
35 |
-
Example:
|
36 |
-
|
37 |
-
`
|
38 |
-
register_post_type( 'foo',
|
39 |
-
array(
|
40 |
-
"public" => true,
|
41 |
-
'has_archive' => true,
|
42 |
-
"rewrite" => [
|
43 |
-
"with_front" => true
|
44 |
-
],
|
45 |
-
"cptp_permalink_structure" => "%post_id%"
|
46 |
-
)
|
47 |
-
);
|
48 |
-
`
|
49 |
-
|
50 |
-
|
51 |
-
## Installation
|
52 |
-
|
53 |
-
* Download the custom-post-type-permalinks.zip file to your computer.
|
54 |
-
* Unzip the file.
|
55 |
-
* Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
|
56 |
-
* Activate the plugin through the 'Plugins' menu in WordPress.
|
57 |
-
|
58 |
-
That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
|
59 |
-
|
60 |
-
|
61 |
-
## Screenshots
|
62 |
-
|
63 |
-
* screenshot-1.png
|
64 |
-
|
65 |
-
|
66 |
-
## Changelog
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
### 1.2.0
|
69 |
|
70 |
-
* Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
|
71 |
-
* Add action `CPTP_registered_modules`.
|
72 |
-
|
73 |
### 1.1.0
|
74 |
|
75 |
-
* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
|
76 |
-
|
77 |
### 1.0.5
|
78 |
|
79 |
-
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
80 |
-
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|
81 |
-
|
82 |
### 1.0.4
|
83 |
|
84 |
-
* option bug fix.
|
85 |
-
|
86 |
### 1.0.3
|
87 |
|
88 |
-
* add category rule, if only attached category to post type.
|
89 |
-
|
90 |
### 1.0.2
|
91 |
|
92 |
-
* category slug bug fix.
|
93 |
-
|
94 |
### 1.0.0
|
95 |
|
96 |
-
* Set Permalink enable register_post_type.
|
97 |
-
* Enable add post type query to taxonomy archives.
|
98 |
-
* Use Class Autoloader.
|
99 |
-
* Create Rewrite Rule on `wp_loaded` action.
|
100 |
-
* WordPress Code Format Fix.
|
101 |
-
* CPTP_Module_Permalink Bug Fix.
|
102 |
-
* Bug Fix.
|
103 |
-
* Use Semantic Versioning.
|
104 |
-
* Date Structure Fix.
|
105 |
-
* Use Category Base.
|
106 |
-
|
107 |
### 0.9.7
|
108 |
|
109 |
-
* Adding date slug only conflicting %post_id%.
|
110 |
-
* Change taxonomy link rewrite rule. Use post_type.
|
111 |
-
* Can change template include custom taxonomy.
|
112 |
-
|
113 |
### 0.9.6
|
114 |
|
115 |
-
* Category and author.
|
116 |
-
* French Transration. Thanks Geoffrey!
|
117 |
-
* Hierarchial Term Fix.
|
118 |
-
|
119 |
### 0.9.5.6
|
120 |
|
121 |
-
* Strict Standard Error Fix.
|
122 |
-
|
123 |
### 0.9.5.4
|
124 |
|
125 |
-
* archive link bug fix.
|
126 |
-
* Tested Up 3.9
|
127 |
-
|
128 |
### 0.9.5.3
|
129 |
|
130 |
-
* “/”bug fix.
|
131 |
-
* taxonomy tmplate bug fix.
|
132 |
-
|
133 |
### 0.9.5.2
|
134 |
|
135 |
-
* Archives Rewrite Fix.
|
136 |
-
|
137 |
### 0.9.5.1
|
138 |
|
139 |
-
* Admin Bug Fix.
|
140 |
-
|
141 |
### 0.9.5
|
142 |
|
143 |
-
* Big change plugin architecture.
|
144 |
-
* Show has_archive, with_front.
|
145 |
-
|
146 |
### 0.9.4
|
147 |
|
148 |
-
* Internal release.
|
149 |
-
|
150 |
### 0.9.3.3
|
151 |
|
152 |
-
* has_archive Bug Fix.
|
153 |
-
* Fixed a bug in the link, including the extension.
|
154 |
-
|
155 |
### 0.9.3.2
|
156 |
|
157 |
-
* wp_get_archives Bug Fix.
|
158 |
-
|
159 |
### 0.9.3.1
|
160 |
|
161 |
-
* Tested 3.6
|
162 |
-
* Bug Fix.
|
163 |
-
|
164 |
-
|
165 |
### 0.9.3
|
166 |
|
167 |
-
* Admin page fix.
|
168 |
-
* slngle pageing link fix.
|
169 |
-
* Add Russian translation.
|
170 |
-
|
171 |
-
|
172 |
### 0.9
|
173 |
|
174 |
-
* Add custom post type archive only has_archive->true
|
175 |
-
* Change method name.
|
176 |
-
* Change hook custom post link.
|
177 |
-
* Use Slug in wp_get_archive().
|
178 |
-
* Fix attachment link.
|
179 |
-
|
180 |
-
|
181 |
### 0.8.7
|
182 |
|
183 |
-
* Translate Bug Fix.
|
184 |
-
|
185 |
### 0.8.6
|
186 |
|
187 |
-
* Paging Bug Fix.
|
188 |
-
* Commnent Paging.
|
189 |
-
* Show pointer.
|
190 |
-
*
|
191 |
-
|
192 |
### 0.8.1
|
193 |
|
194 |
-
* Bug Fix.
|
195 |
-
|
196 |
### 0.7.9.1
|
197 |
|
198 |
-
* Support Comment permalink.
|
199 |
-
* Small change in setting page.
|
200 |
-
* Change default value.
|
201 |
-
* Bug Fix.
|
202 |
-
|
203 |
### 0.7.8
|
204 |
|
205 |
-
* Bug fix.
|
206 |
-
|
207 |
-
|
208 |
### 0.7.7
|
209 |
|
210 |
-
* Bug fix.
|
211 |
-
|
212 |
### 0.7.6
|
213 |
|
214 |
-
* Add parent's slug to hierarchical post type.
|
215 |
-
|
216 |
-
|
217 |
### 0.7.5
|
218 |
|
219 |
-
* Add ability to disable to change custom taxonomy archive's permalink.
|
220 |
-
|
221 |
-
|
222 |
### 0.7.4
|
223 |
|
224 |
-
* Bug fix taxonomy rewrite.
|
225 |
-
|
226 |
-
|
227 |
### 0.7.3
|
228 |
|
229 |
-
* Changed part for saving the data.
|
230 |
-
|
231 |
### 0.7.2
|
232 |
|
233 |
-
* Reweite bug fix.
|
234 |
-
* Prewview bug fix.
|
235 |
-
|
236 |
### 0.7.1
|
237 |
|
238 |
-
* Bug fix.
|
239 |
-
|
240 |
### 0.7
|
241 |
|
242 |
-
* Add %{taxonomy}% tag.
|
243 |
-
* A large number of Bug Fix.
|
244 |
-
* Change Setting Page. Use Setting API.
|
245 |
-
|
246 |
-
|
247 |
### 0.6.2
|
248 |
|
249 |
-
* Fix %author% tag.
|
250 |
-
|
251 |
### 0.6
|
252 |
|
253 |
-
* First release on wordpress.org
|
1 |
+
# Custom Post Type Permalinks
|
2 |
+
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
3 |
+
License: GPLv2 or Later
|
4 |
+
|
5 |
+
Edit the permalink of custom post type.
|
6 |
+
|
7 |
|
8 |
[![Build Status](https://travis-ci.org/torounit/custom-post-type-permalinks.svg)](https://travis-ci.org/torounit/custom-post-type-permalinks)
|
9 |
[![](https://img.shields.io/wordpress/plugin/dt/custom-post-type-permalinks.svg)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
12 |
|
13 |
[![](http://www.torounit.com/wp-content/uploads/2011/11/banner-772x250.png)](https://wordpress.org/plugins/custom-post-type-permalinks/)
|
14 |
|
15 |
+
## Description
|
16 |
+
|
17 |
+
Custom Post Type Permalinks allow you edit the permalink structure of custom post type.
|
18 |
+
|
19 |
+
Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix.
|
20 |
+
|
21 |
+
And support wp_get_archives( "post_type=foo" ).
|
22 |
+
|
23 |
+
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
24 |
+
|
25 |
+
Donation: Please send amazon.co.jp Gift to donate[at]torounit.com.
|
26 |
+
|
27 |
### Translators
|
28 |
|
29 |
+
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
30 |
+
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
31 |
+
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
32 |
+
|
33 |
+
## Setting on Code
|
34 |
+
|
35 |
+
Example:
|
36 |
+
|
37 |
+
`
|
38 |
+
register_post_type( 'foo',
|
39 |
+
array(
|
40 |
+
"public" => true,
|
41 |
+
'has_archive' => true,
|
42 |
+
"rewrite" => [
|
43 |
+
"with_front" => true
|
44 |
+
],
|
45 |
+
"cptp_permalink_structure" => "%post_id%"
|
46 |
+
)
|
47 |
+
);
|
48 |
+
`
|
49 |
+
|
50 |
+
|
51 |
+
## Installation
|
52 |
+
|
53 |
+
* Download the custom-post-type-permalinks.zip file to your computer.
|
54 |
+
* Unzip the file.
|
55 |
+
* Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
|
56 |
+
* Activate the plugin through the 'Plugins' menu in WordPress.
|
57 |
+
|
58 |
+
That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
|
59 |
+
|
60 |
+
|
61 |
+
## Screenshots
|
62 |
+
|
63 |
+
* screenshot-1.png
|
64 |
+
|
65 |
+
|
66 |
+
## Changelog
|
67 |
+
|
68 |
+
### 1.3.1
|
69 |
+
|
70 |
+
* bugfix `wp_get_archives`.
|
71 |
+
|
72 |
+
### 1.3.0
|
73 |
+
|
74 |
+
* bugfix for polylang.
|
75 |
+
|
76 |
### 1.2.0
|
77 |
|
78 |
+
* Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
|
79 |
+
* Add action `CPTP_registered_modules`.
|
80 |
+
|
81 |
### 1.1.0
|
82 |
|
83 |
+
* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
|
84 |
+
|
85 |
### 1.0.5
|
86 |
|
87 |
+
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
88 |
+
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|
89 |
+
|
90 |
### 1.0.4
|
91 |
|
92 |
+
* option bug fix.
|
93 |
+
|
94 |
### 1.0.3
|
95 |
|
96 |
+
* add category rule, if only attached category to post type.
|
97 |
+
|
98 |
### 1.0.2
|
99 |
|
100 |
+
* category slug bug fix.
|
101 |
+
|
102 |
### 1.0.0
|
103 |
|
104 |
+
* Set Permalink enable register_post_type.
|
105 |
+
* Enable add post type query to taxonomy archives.
|
106 |
+
* Use Class Autoloader.
|
107 |
+
* Create Rewrite Rule on `wp_loaded` action.
|
108 |
+
* WordPress Code Format Fix.
|
109 |
+
* CPTP_Module_Permalink Bug Fix.
|
110 |
+
* Bug Fix.
|
111 |
+
* Use Semantic Versioning.
|
112 |
+
* Date Structure Fix.
|
113 |
+
* Use Category Base.
|
114 |
+
|
115 |
### 0.9.7
|
116 |
|
117 |
+
* Adding date slug only conflicting %post_id%.
|
118 |
+
* Change taxonomy link rewrite rule. Use post_type.
|
119 |
+
* Can change template include custom taxonomy.
|
120 |
+
|
121 |
### 0.9.6
|
122 |
|
123 |
+
* Category and author.
|
124 |
+
* French Transration. Thanks Geoffrey!
|
125 |
+
* Hierarchial Term Fix.
|
126 |
+
|
127 |
### 0.9.5.6
|
128 |
|
129 |
+
* Strict Standard Error Fix.
|
130 |
+
|
131 |
### 0.9.5.4
|
132 |
|
133 |
+
* archive link bug fix.
|
134 |
+
* Tested Up 3.9
|
135 |
+
|
136 |
### 0.9.5.3
|
137 |
|
138 |
+
* “/”bug fix.
|
139 |
+
* taxonomy tmplate bug fix.
|
140 |
+
|
141 |
### 0.9.5.2
|
142 |
|
143 |
+
* Archives Rewrite Fix.
|
144 |
+
|
145 |
### 0.9.5.1
|
146 |
|
147 |
+
* Admin Bug Fix.
|
148 |
+
|
149 |
### 0.9.5
|
150 |
|
151 |
+
* Big change plugin architecture.
|
152 |
+
* Show has_archive, with_front.
|
153 |
+
|
154 |
### 0.9.4
|
155 |
|
156 |
+
* Internal release.
|
157 |
+
|
158 |
### 0.9.3.3
|
159 |
|
160 |
+
* has_archive Bug Fix.
|
161 |
+
* Fixed a bug in the link, including the extension.
|
162 |
+
|
163 |
### 0.9.3.2
|
164 |
|
165 |
+
* wp_get_archives Bug Fix.
|
166 |
+
|
167 |
### 0.9.3.1
|
168 |
|
169 |
+
* Tested 3.6
|
170 |
+
* Bug Fix.
|
171 |
+
|
172 |
+
|
173 |
### 0.9.3
|
174 |
|
175 |
+
* Admin page fix.
|
176 |
+
* slngle pageing link fix.
|
177 |
+
* Add Russian translation.
|
178 |
+
|
179 |
+
|
180 |
### 0.9
|
181 |
|
182 |
+
* Add custom post type archive only has_archive->true
|
183 |
+
* Change method name.
|
184 |
+
* Change hook custom post link.
|
185 |
+
* Use Slug in wp_get_archive().
|
186 |
+
* Fix attachment link.
|
187 |
+
|
188 |
+
|
189 |
### 0.8.7
|
190 |
|
191 |
+
* Translate Bug Fix.
|
192 |
+
|
193 |
### 0.8.6
|
194 |
|
195 |
+
* Paging Bug Fix.
|
196 |
+
* Commnent Paging.
|
197 |
+
* Show pointer.
|
198 |
+
*
|
199 |
+
|
200 |
### 0.8.1
|
201 |
|
202 |
+
* Bug Fix.
|
203 |
+
|
204 |
### 0.7.9.1
|
205 |
|
206 |
+
* Support Comment permalink.
|
207 |
+
* Small change in setting page.
|
208 |
+
* Change default value.
|
209 |
+
* Bug Fix.
|
210 |
+
|
211 |
### 0.7.8
|
212 |
|
213 |
+
* Bug fix.
|
214 |
+
|
215 |
+
|
216 |
### 0.7.7
|
217 |
|
218 |
+
* Bug fix.
|
219 |
+
|
220 |
### 0.7.6
|
221 |
|
222 |
+
* Add parent's slug to hierarchical post type.
|
223 |
+
|
224 |
+
|
225 |
### 0.7.5
|
226 |
|
227 |
+
* Add ability to disable to change custom taxonomy archive's permalink.
|
228 |
+
|
229 |
+
|
230 |
### 0.7.4
|
231 |
|
232 |
+
* Bug fix taxonomy rewrite.
|
233 |
+
|
234 |
+
|
235 |
### 0.7.3
|
236 |
|
237 |
+
* Changed part for saving the data.
|
238 |
+
|
239 |
### 0.7.2
|
240 |
|
241 |
+
* Reweite bug fix.
|
242 |
+
* Prewview bug fix.
|
243 |
+
|
244 |
### 0.7.1
|
245 |
|
246 |
+
* Bug fix.
|
247 |
+
|
248 |
### 0.7
|
249 |
|
250 |
+
* Add %{taxonomy}% tag.
|
251 |
+
* A large number of Bug Fix.
|
252 |
+
* Change Setting Page. Use Setting API.
|
253 |
+
|
254 |
+
|
255 |
### 0.6.2
|
256 |
|
257 |
+
* Fix %author% tag.
|
258 |
+
|
259 |
### 0.6
|
260 |
|
261 |
+
* First release on wordpress.org
|
readme.txt
CHANGED
@@ -1,217 +1,219 @@
|
|
1 |
-
=== Custom Post Type Permalinks ===
|
2 |
-
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
-
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
|
4 |
-
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
-
Requires at least: 4.
|
6 |
-
Tested up to: 4.4
|
7 |
-
Stable tag: 1.3.
|
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 amazon.co.jp Gift to donate[at]torounit.com.
|
23 |
-
|
24 |
-
= Translators =
|
25 |
-
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
26 |
-
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
27 |
-
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
28 |
-
|
29 |
-
== Setting on Code ==
|
30 |
-
|
31 |
-
Example:
|
32 |
-
|
33 |
-
`
|
34 |
-
register_post_type( 'foo',
|
35 |
-
array(
|
36 |
-
"public" => true,
|
37 |
-
'has_archive' => true,
|
38 |
-
"rewrite" => [
|
39 |
-
"with_front" => true
|
40 |
-
],
|
41 |
-
"cptp_permalink_structure" => "%post_id%"
|
42 |
-
)
|
43 |
-
);
|
44 |
-
`
|
45 |
-
|
46 |
-
|
47 |
-
== Installation ==
|
48 |
-
|
49 |
-
* Download the custom-post-type-permalinks.zip file to your computer.
|
50 |
-
* Unzip the file.
|
51 |
-
* Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
|
52 |
-
* Activate the plugin through the 'Plugins' menu in WordPress.
|
53 |
-
|
54 |
-
That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
|
55 |
-
|
56 |
-
|
57 |
-
== Screenshots ==
|
58 |
-
|
59 |
-
* screenshot-1.png
|
60 |
-
|
61 |
-
|
62 |
-
== Changelog ==
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
*
|
92 |
-
*
|
93 |
-
*
|
94 |
-
*
|
95 |
-
*
|
96 |
-
*
|
97 |
-
*
|
98 |
-
* Use
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
*
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
*
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
*
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
*
|
156 |
-
*
|
157 |
-
*
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
*
|
167 |
-
*
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
*
|
176 |
-
*
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
*
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
|
|
|
1 |
+
=== Custom Post Type Permalinks ===
|
2 |
+
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
+
Donate link: http://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.4
|
7 |
+
Stable tag: 1.3.1
|
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 amazon.co.jp Gift to donate[at]torounit.com.
|
23 |
+
|
24 |
+
= Translators =
|
25 |
+
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
26 |
+
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
27 |
+
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
28 |
+
|
29 |
+
== Setting on Code ==
|
30 |
+
|
31 |
+
Example:
|
32 |
+
|
33 |
+
`
|
34 |
+
register_post_type( 'foo',
|
35 |
+
array(
|
36 |
+
"public" => true,
|
37 |
+
'has_archive' => true,
|
38 |
+
"rewrite" => [
|
39 |
+
"with_front" => true
|
40 |
+
],
|
41 |
+
"cptp_permalink_structure" => "%post_id%"
|
42 |
+
)
|
43 |
+
);
|
44 |
+
`
|
45 |
+
|
46 |
+
|
47 |
+
== Installation ==
|
48 |
+
|
49 |
+
* Download the custom-post-type-permalinks.zip file to your computer.
|
50 |
+
* Unzip the file.
|
51 |
+
* Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory.
|
52 |
+
* Activate the plugin through the 'Plugins' menu in WordPress.
|
53 |
+
|
54 |
+
That's it. You can access the permalinks setting by going to *Settings -> Permalinks*.
|
55 |
+
|
56 |
+
|
57 |
+
== Screenshots ==
|
58 |
+
|
59 |
+
* screenshot-1.png
|
60 |
+
|
61 |
+
|
62 |
+
== Changelog ==
|
63 |
+
|
64 |
+
= 1.3.1 =
|
65 |
+
* bugfix `wp_get_archives`.
|
66 |
+
|
67 |
+
= 1.3.0 =
|
68 |
+
* bugfix for polylang.
|
69 |
+
|
70 |
+
= 1.2.0 =
|
71 |
+
* Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
|
72 |
+
* Add action `CPTP_registered_modules`.
|
73 |
+
|
74 |
+
= 1.1.0 =
|
75 |
+
* WPML Test. thanks [keita_kobayashi](https://profiles.wordpress.org/keita_kobayashi) !
|
76 |
+
|
77 |
+
= 1.0.5 =
|
78 |
+
* admin bug fix. thanks [ixkaito](https://profiles.wordpress.org/ixkaito) !
|
79 |
+
* Translation Update Thanks [Natali_Z](https://profiles.wordpress.org/natali_z) !
|
80 |
+
|
81 |
+
= 1.0.4 =
|
82 |
+
* option bug fix.
|
83 |
+
|
84 |
+
= 1.0.3 =
|
85 |
+
* add category rule, if only attached category to post type.
|
86 |
+
|
87 |
+
= 1.0.2 =
|
88 |
+
* category slug bug fix.
|
89 |
+
|
90 |
+
= 1.0.0 =
|
91 |
+
* Set Permalink enable register_post_type.
|
92 |
+
* Enable add post type query to taxonomy archives.
|
93 |
+
* Use Class Autoloader.
|
94 |
+
* Create Rewrite Rule on `wp_loaded` action.
|
95 |
+
* WordPress Code Format Fix.
|
96 |
+
* CPTP_Module_Permalink Bug Fix.
|
97 |
+
* Bug Fix.
|
98 |
+
* Use Semantic Versioning.
|
99 |
+
* Date Structure Fix.
|
100 |
+
* Use Category Base.
|
101 |
+
|
102 |
+
= 0.9.7 =
|
103 |
+
* Adding date slug only conflicting %post_id%.
|
104 |
+
* Change taxonomy link rewrite rule. Use post_type.
|
105 |
+
* Can change template include custom taxonomy.
|
106 |
+
|
107 |
+
= 0.9.6 =
|
108 |
+
* Category and author.
|
109 |
+
* French Transration. Thanks Geoffrey!
|
110 |
+
* Hierarchial Term Fix.
|
111 |
+
|
112 |
+
= 0.9.5.6 =
|
113 |
+
* Strict Standard Error Fix.
|
114 |
+
|
115 |
+
= 0.9.5.4 =
|
116 |
+
* archive link bug fix.
|
117 |
+
* Tested Up 3.9
|
118 |
+
|
119 |
+
= 0.9.5.3 =
|
120 |
+
* “/”bug fix.
|
121 |
+
* taxonomy tmplate bug fix.
|
122 |
+
|
123 |
+
= 0.9.5.2 =
|
124 |
+
* Archives Rewrite Fix.
|
125 |
+
|
126 |
+
= 0.9.5.1 =
|
127 |
+
* Admin Bug Fix.
|
128 |
+
|
129 |
+
= 0.9.5 =
|
130 |
+
* Big change plugin architecture.
|
131 |
+
* Show has_archive, with_front.
|
132 |
+
|
133 |
+
= 0.9.4 =
|
134 |
+
* Internal release.
|
135 |
+
|
136 |
+
= 0.9.3.3 =
|
137 |
+
* has_archive Bug Fix.
|
138 |
+
* Fixed a bug in the link, including the extension.
|
139 |
+
|
140 |
+
= 0.9.3.2 =
|
141 |
+
* wp_get_archives Bug Fix.
|
142 |
+
|
143 |
+
= 0.9.3.1 =
|
144 |
+
* Tested 3.6
|
145 |
+
* Bug Fix.
|
146 |
+
|
147 |
+
|
148 |
+
= 0.9.3 =
|
149 |
+
* Admin page fix.
|
150 |
+
* slngle pageing link fix.
|
151 |
+
* Add Russian translation.
|
152 |
+
|
153 |
+
|
154 |
+
= 0.9 =
|
155 |
+
* Add custom post type archive only has_archive->true
|
156 |
+
* Change method name.
|
157 |
+
* Change hook custom post link.
|
158 |
+
* Use Slug in wp_get_archive().
|
159 |
+
* Fix attachment link.
|
160 |
+
|
161 |
+
|
162 |
+
= 0.8.7 =
|
163 |
+
* Translate Bug Fix.
|
164 |
+
|
165 |
+
= 0.8.6 =
|
166 |
+
* Paging Bug Fix.
|
167 |
+
* Commnent Paging.
|
168 |
+
* Show pointer.
|
169 |
+
*
|
170 |
+
|
171 |
+
= 0.8.1 =
|
172 |
+
* Bug Fix.
|
173 |
+
|
174 |
+
= 0.7.9.1 =
|
175 |
+
* Support Comment permalink.
|
176 |
+
* Small change in setting page.
|
177 |
+
* Change default value.
|
178 |
+
* Bug Fix.
|
179 |
+
|
180 |
+
= 0.7.8 =
|
181 |
+
* Bug fix.
|
182 |
+
|
183 |
+
|
184 |
+
= 0.7.7 =
|
185 |
+
* Bug fix.
|
186 |
+
|
187 |
+
= 0.7.6 =
|
188 |
+
* Add parent's slug to hierarchical post type.
|
189 |
+
|
190 |
+
|
191 |
+
= 0.7.5 =
|
192 |
+
* Add ability to disable to change custom taxonomy archive's permalink.
|
193 |
+
|
194 |
+
|
195 |
+
= 0.7.4 =
|
196 |
+
* Bug fix taxonomy rewrite.
|
197 |
+
|
198 |
+
|
199 |
+
= 0.7.3 =
|
200 |
+
* Changed part for saving the data.
|
201 |
+
|
202 |
+
= 0.7.2 =
|
203 |
+
* Reweite bug fix.
|
204 |
+
* Prewview bug fix.
|
205 |
+
|
206 |
+
= 0.7.1 =
|
207 |
+
* Bug fix.
|
208 |
+
|
209 |
+
= 0.7 =
|
210 |
+
* Add %{taxonomy}% tag.
|
211 |
+
* A large number of Bug Fix.
|
212 |
+
* Change Setting Page. Use Setting API.
|
213 |
+
|
214 |
+
|
215 |
+
= 0.6.2 =
|
216 |
+
* Fix %author% tag.
|
217 |
+
|
218 |
+
= 0.6 =
|
219 |
+
* First release on wordpress.org
|