Custom Post Type Permalinks - Version 1.3.0

Version Description

  • bugfix for polylang.
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.3.0

CPTP/Module/Admin.php CHANGED
@@ -26,7 +26,7 @@ class CPTP_Module_Admin extends CPTP_Module {
26
  */
27
  public function settings_api_init() {
28
  add_settings_section( 'cptp_setting_section',
29
- __( 'Permalink Setting for custom post type', 'cptp' ),
30
  array( $this, 'setting_section_callback_function' ),
31
  'permalink'
32
  );
@@ -59,7 +59,7 @@ class CPTP_Module_Admin extends CPTP_Module {
59
 
60
  add_settings_field(
61
  'add_post_type_for_tax',
62
- __( 'Add post_type query for custom taxonomy archive.', 'cptp' ),
63
  array( $this, 'add_post_type_for_tax_callback_function' ),
64
  'permalink',
65
  'cptp_setting_section',
@@ -72,14 +72,14 @@ class CPTP_Module_Admin extends CPTP_Module {
72
 
73
  public function setting_section_callback_function() {
74
  ?>
75
- <p><?php _e( 'Setting permalinks of custom post type.', 'cptp' ); ?><br/>
76
- <?php _e( "The tags you can use is WordPress Structure Tags and '%\"custom_taxonomy_slug\"%'. (e.g. %actors%)", 'cptp' ); ?>
77
  <br/>
78
- <?php _e( "%\"custom_taxonomy_slug\"% is replaced the taxonomy's term.'.", 'cptp' ); ?></p>
79
 
80
  <p><?php _e( "Presence of the trailing '/' is unified into a standard permalink structure setting.", 'cptp' ); ?>
81
  <p><?php _e( 'If <code>has_archive</code> is true, add permalinks for custom post type archive.', 'cptp' ); ?>
82
- <?php _e( "If you don't entered permalink structure, permalink is configured /%postname%/'.", 'cptp' ); ?>
83
  </p>
84
  <?php
85
  }
@@ -121,15 +121,15 @@ class CPTP_Module_Admin extends CPTP_Module {
121
 
122
  public function setting_no_tax_structure_callback_function() {
123
  echo '<input name="no_taxonomy_structure" id="no_taxonomy_structure" type="checkbox" value="1" class="code" ' . checked( false, get_option( 'no_taxonomy_structure' ), false ) . ' /> ';
124
- $txt = __( "If you check,The custom taxonomy's permalinks is <code>%s/post_type/taxonomy/term</code>.", 'cptp' );
125
  printf( $txt, home_url() );
126
  }
127
 
128
 
129
  public function add_post_type_for_tax_callback_function() {
130
  echo '<input name="add_post_type_for_tax" id="add_post_type_for_tax" type="checkbox" value="1" class="code" ' . checked( true, get_option( 'add_post_type_for_tax' ), false ) . ' /> ';
131
- _e( "custom taxonomy archive also works as post type archive.", 'cptp' );
132
- _e( "There are cases when template to be loaded is changed.", 'cptp' );
133
  }
134
 
135
 
26
  */
27
  public function settings_api_init() {
28
  add_settings_section( 'cptp_setting_section',
29
+ __( 'Permalink Settings for Custom Post Types', 'cptp' ),
30
  array( $this, 'setting_section_callback_function' ),
31
  'permalink'
32
  );
59
 
60
  add_settings_field(
61
  'add_post_type_for_tax',
62
+ __( 'Add <code>post_type</code> query for custom taxonomy archive.', 'cptp' ),
63
  array( $this, 'add_post_type_for_tax_callback_function' ),
64
  'permalink',
65
  'cptp_setting_section',
72
 
73
  public function setting_section_callback_function() {
74
  ?>
75
+ <p><?php _e( 'Set the permalinks of your Custom Post Types.', 'cptp' ); ?><br/>
76
+ <?php _e( "The tags you can use are WordPress Structure Tags and <code>%\"custom_taxonomy_slug\"%</code> (e.g. <code>%actors%</code> or <code>%movie_actors%</code>).", 'cptp' ); ?>
77
  <br/>
78
+ <?php _e( "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term.", 'cptp' ); ?></p>
79
 
80
  <p><?php _e( "Presence of the trailing '/' is unified into a standard permalink structure setting.", 'cptp' ); ?>
81
  <p><?php _e( 'If <code>has_archive</code> is true, add permalinks for custom post type archive.', 'cptp' ); ?>
82
+ <?php _e( "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>.", 'cptp' ); ?>
83
  </p>
84
  <?php
85
  }
121
 
122
  public function setting_no_tax_structure_callback_function() {
123
  echo '<input name="no_taxonomy_structure" id="no_taxonomy_structure" type="checkbox" value="1" class="code" ' . checked( false, get_option( 'no_taxonomy_structure' ), false ) . ' /> ';
124
+ $txt = __( "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>.", 'cptp' );
125
  printf( $txt, home_url() );
126
  }
127
 
128
 
129
  public function add_post_type_for_tax_callback_function() {
130
  echo '<input name="add_post_type_for_tax" id="add_post_type_for_tax" type="checkbox" value="1" class="code" ' . checked( true, get_option( 'add_post_type_for_tax' ), false ) . ' /> ';
131
+ _e( "Custom taxonomy archive also works as post type archive. ", 'cptp' );
132
+ _e( "There are cases when the template to be loaded is changed.", 'cptp' );
133
  }
134
 
135
 
CPTP/Module/Permalink.php CHANGED
@@ -170,8 +170,7 @@ class CPTP_Module_Permalink extends CPTP_Module {
170
  $permalink
171
  );
172
  $permalink = str_replace( $search, $replace, $permalink );
173
- $permalink = rtrim( home_url(), '/' ) . '/' . ltrim( $permalink, '/' );
174
-
175
  return $permalink;
176
  }
177
 
@@ -312,17 +311,26 @@ class CPTP_Module_Permalink extends CPTP_Module {
312
  } else {
313
  $post_type = $taxonomy->object_type[0];
314
  }
 
 
 
 
315
  $post_type_obj = get_post_type_object( $post_type );
 
 
 
 
 
316
  $slug = $post_type_obj->rewrite['slug'];
317
  $with_front = $post_type_obj->rewrite['with_front'];
318
- $front = substr( $wp_rewrite->front, 1 );
319
- $termlink = str_replace( $front, '', $termlink );
320
 
321
  if ( $with_front ) {
322
  $slug = $front . $slug;
323
  }
324
 
325
- $termlink = str_replace( $wp_home, $wp_home . '/' . $slug, $termlink );
 
 
326
 
327
  if ( ! $taxonomy->rewrite['hierarchical'] ) {
328
  $termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents( $term->term_id, $taxonomy->name, false, '/', true ), $termlink );
170
  $permalink
171
  );
172
  $permalink = str_replace( $search, $replace, $permalink );
173
+ $permalink = home_url( $permalink );
 
174
  return $permalink;
175
  }
176
 
311
  } else {
312
  $post_type = $taxonomy->object_type[0];
313
  }
314
+
315
+ $front = substr( $wp_rewrite->front, 1 );
316
+ $termlink = str_replace( $front, '', $termlink );//remove front.
317
+
318
  $post_type_obj = get_post_type_object( $post_type );
319
+
320
+ if( empty( $post_type_obj ) ) {
321
+ return $termlink;
322
+ }
323
+
324
  $slug = $post_type_obj->rewrite['slug'];
325
  $with_front = $post_type_obj->rewrite['with_front'];
 
 
326
 
327
  if ( $with_front ) {
328
  $slug = $front . $slug;
329
  }
330
 
331
+ if( !empty( $slug )) {
332
+ $termlink = str_replace( $wp_home, $wp_home . '/' . $slug, $termlink );
333
+ }
334
 
335
  if ( ! $taxonomy->rewrite['hierarchical'] ) {
336
  $termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents( $term->term_id, $taxonomy->name, false, '/', true ), $termlink );
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.2.0
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.2.0
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.0
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.0
21
  *
22
  */
23
 
language/cptp-fr_FR.po CHANGED
@@ -17,7 +17,7 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
  #: ../CPTP/Module/Admin.php:30
20
- msgid "Permalink Setting for custom post type"
21
  msgstr "Réglage des permaliens des custom-post-types"
22
 
23
  #: ../CPTP/Module/Admin.php:72
@@ -27,7 +27,7 @@ msgstr ""
27
  "personnalisée."
28
 
29
  #: ../CPTP/Module/Admin.php:93
30
- msgid "Setting permalinks of custom post type."
31
  msgstr "Réglage des permaliens des custom-post-types"
32
 
33
  #: ../CPTP/Module/Admin.php:94
@@ -39,7 +39,7 @@ msgstr ""
39
  "que '%custom_taxonomy_slug%'. (ex. %acteurs%)"
40
 
41
  #: ../CPTP/Module/Admin.php:95
42
- msgid "%\"custom_taxonomy_slug\"% is replaced the taxonomy's term.'."
43
  msgstr "%custom_taxonomy_slug% est remplacé par le nom de la taxonomie."
44
 
45
  #: ../CPTP/Module/Admin.php:97
@@ -60,8 +60,7 @@ msgstr ""
60
 
61
  #: ../CPTP/Module/Admin.php:99
62
  msgid ""
63
- "If you don't entered permalink structure, permalink is configured /%postname"
64
- "%/'."
65
  msgstr ""
66
  "Si vous n'entrez pas de structure de permalien, celui-ci est configuré avec /"
67
  "%postname%/."
@@ -69,8 +68,7 @@ msgstr ""
69
  #: ../CPTP/Module/Admin.php:132
70
  #, php-format
71
  msgid ""
72
- "If you check,The custom taxonomy's permalinks is <code>%s/post_type/taxonomy/"
73
- "term</code>."
74
  msgstr ""
75
  "Si vous cochez, le permalien d'une taxonomie personnalisée sera <code>%s/"
76
  "post_type/taxonomy/term</code>."
@@ -84,10 +82,6 @@ msgstr ""
84
  "php'>Permaliens</a>, paramétrez un permalien personnalisé pour chaque type "
85
  "de post.</p>"
86
 
87
- #: ../CPTP/Util.php:57
88
- #, php-format
89
- msgid "View all posts in %s"
90
- msgstr "Voir tous les posts dans %s"
91
 
92
  #~ msgid "From Permalinks, set a custom permalink for each post type."
93
  #~ msgstr ""
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
  #: ../CPTP/Module/Admin.php:30
20
+ msgid "Permalink Settings for Custom Post Types"
21
  msgstr "Réglage des permaliens des custom-post-types"
22
 
23
  #: ../CPTP/Module/Admin.php:72
27
  "personnalisée."
28
 
29
  #: ../CPTP/Module/Admin.php:93
30
+ msgid "The tags you can use is WordPress Structure Tags and '%\"custom_taxonomy_slug\"%"
31
  msgstr "Réglage des permaliens des custom-post-types"
32
 
33
  #: ../CPTP/Module/Admin.php:94
39
  "que '%custom_taxonomy_slug%'. (ex. %acteurs%)"
40
 
41
  #: ../CPTP/Module/Admin.php:95
42
+ msgid "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term."
43
  msgstr "%custom_taxonomy_slug% est remplacé par le nom de la taxonomie."
44
 
45
  #: ../CPTP/Module/Admin.php:97
60
 
61
  #: ../CPTP/Module/Admin.php:99
62
  msgid ""
63
+ "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>."
 
64
  msgstr ""
65
  "Si vous n'entrez pas de structure de permalien, celui-ci est configuré avec /"
66
  "%postname%/."
68
  #: ../CPTP/Module/Admin.php:132
69
  #, php-format
70
  msgid ""
71
+ "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>."
 
72
  msgstr ""
73
  "Si vous cochez, le permalien d'une taxonomie personnalisée sera <code>%s/"
74
  "post_type/taxonomy/term</code>."
82
  "php'>Permaliens</a>, paramétrez un permalien personnalisé pour chaque type "
83
  "de post.</p>"
84
 
 
 
 
 
85
 
86
  #~ msgid "From Permalinks, set a custom permalink for each post type."
87
  #~ msgstr ""
language/cptp-ja.po CHANGED
@@ -16,7 +16,7 @@ msgstr ""
16
  "X-Poedit-SearchPath-0: CPTP/Module\n"
17
 
18
  #: CPTP/Module/Admin.php:30
19
- msgid "Permalink Setting for custom post type"
20
  msgstr "カスタム投稿タイプのパーマリンクの設定"
21
 
22
  #: CPTP/Module/Admin.php:72
@@ -24,7 +24,7 @@ msgid "Use custom permalink of custom taxonomy archive."
24
  msgstr "カスタム分類のアーカイブのパーマリンクを変更する。"
25
 
26
  #: CPTP/Module/Admin.php:93
27
- msgid "Setting permalinks of custom post type."
28
  msgstr "カスタム投稿タイプごとのパーマリンク構造を設定できます。"
29
 
30
  #: CPTP/Module/Admin.php:94
@@ -36,7 +36,7 @@ msgstr ""
36
  "%actors%)"
37
 
38
  #: CPTP/Module/Admin.php:95
39
- msgid "%\"custom_taxonomy_slug\"% is replaced the taxonomy's term.'."
40
  msgstr "'%\"カスタム分類名\"%' は、そのカスタム分類のタームに置換されます。"
41
 
42
  #: CPTP/Module/Admin.php:97
@@ -55,15 +55,13 @@ msgstr ""
55
 
56
  #: CPTP/Module/Admin.php:99
57
  msgid ""
58
- "If you don't entered permalink structure, permalink is configured /%postname"
59
- "%/'."
60
  msgstr "未入力のときは、/%postname%/ に設定されます。"
61
 
62
  #: CPTP/Module/Admin.php:128
63
  #, php-format
64
  msgid ""
65
- "If you check,The custom taxonomy's permalinks is <code>%s/post_type/taxonomy/"
66
- "term</code>."
67
  msgstr ""
68
  "チェックした場合、カスタム分類のアーカイブのパーマリンクは <code>%s/"
69
  "post_type/taxonomy/term</code>. に変更されます。"
16
  "X-Poedit-SearchPath-0: CPTP/Module\n"
17
 
18
  #: CPTP/Module/Admin.php:30
19
+ msgid "Permalink Settings for Custom Post Types"
20
  msgstr "カスタム投稿タイプのパーマリンクの設定"
21
 
22
  #: CPTP/Module/Admin.php:72
24
  msgstr "カスタム分類のアーカイブのパーマリンクを変更する。"
25
 
26
  #: CPTP/Module/Admin.php:93
27
+ msgid "The tags you can use is WordPress Structure Tags and '%\"custom_taxonomy_slug\"%"
28
  msgstr "カスタム投稿タイプごとのパーマリンク構造を設定できます。"
29
 
30
  #: CPTP/Module/Admin.php:94
36
  "%actors%)"
37
 
38
  #: CPTP/Module/Admin.php:95
39
+ msgid "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term."
40
  msgstr "'%\"カスタム分類名\"%' は、そのカスタム分類のタームに置換されます。"
41
 
42
  #: CPTP/Module/Admin.php:97
55
 
56
  #: CPTP/Module/Admin.php:99
57
  msgid ""
58
+ "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>."
 
59
  msgstr "未入力のときは、/%postname%/ に設定されます。"
60
 
61
  #: CPTP/Module/Admin.php:128
62
  #, php-format
63
  msgid ""
64
+ "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>."
 
65
  msgstr ""
66
  "チェックした場合、カスタム分類のアーカイブのパーマリンクは <code>%s/"
67
  "post_type/taxonomy/term</code>. に変更されます。"
language/cptp-ru_RU.po CHANGED
@@ -21,7 +21,7 @@ msgstr ""
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
  #: CPTP/Module/Admin.php:31
24
- msgid "Permalink Setting for custom post type"
25
  msgstr "Настройки структуры ссылок для записей произвольного типа"
26
 
27
  #: CPTP/Module/Admin.php:52
@@ -29,11 +29,11 @@ msgid "Use custom permalink of custom taxonomy archive."
29
  msgstr "Структура постоянных ссылок для архива таксономии."
30
 
31
  #: CPTP/Module/Admin.php:62
32
- msgid "Add post_type query for custom taxonomy archive."
33
  msgstr "Добавить запрос post_type для архива таксономии."
34
 
35
  #: CPTP/Module/Admin.php:74
36
- msgid "Setting permalinks of custom post type."
37
  msgstr "Настройки постоянных ссылок для записей произвольного типа."
38
 
39
  #: CPTP/Module/Admin.php:75
@@ -45,7 +45,7 @@ msgstr ""
45
  "%custom_taxonomy_slug%</code> (например <code>%actors%</code>)."
46
 
47
  #: CPTP/Module/Admin.php:76
48
- msgid "%\"custom_taxonomy_slug\"% is replaced the taxonomy's term.'."
49
  msgstr ""
50
  "(Замените <code>%custom_taxonomy_slug%</code> на ярлык своей таксономии.)"
51
 
@@ -68,8 +68,7 @@ msgstr ""
68
 
69
  #: CPTP/Module/Admin.php:80
70
  msgid ""
71
- "If you don't entered permalink structure, permalink is configured /%postname"
72
- "%/'."
73
  msgstr ""
74
  "Если вы оставите поле пустым будет установлено значение по умолчанию <code>/"
75
  "%postname%/</code>."
@@ -77,19 +76,18 @@ msgstr ""
77
  #: CPTP/Module/Admin.php:128
78
  #, php-format
79
  msgid ""
80
- "If you check,The custom taxonomy's permalinks is <code>%s/post_type/taxonomy/"
81
- "term</code>."
82
  msgstr ""
83
  "При выборе произвольная структура URL для таксономии будет <code>%s/"
84
  "post_type/taxonomy/term</code>."
85
 
86
  #: CPTP/Module/Admin.php:135
87
- msgid "custom taxonomy archive also works as post type archive."
88
  msgstr ""
89
  "Архив пользовательской таксономии также работает как архив типа записи.&nbsp;"
90
 
91
  #: CPTP/Module/Admin.php:136
92
- msgid "There are cases when template to be loaded is changed."
93
  msgstr "Бывают случаи, когда изменяется загрузка шаблона."
94
 
95
  #: CPTP/Module/Admin.php:163
@@ -100,7 +98,3 @@ msgstr ""
100
  "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink."
101
  "php'>Permalinks</a>, set a custom permalink for each post type.</p>"
102
 
103
- #: CPTP/Util.php:57
104
- #, php-format
105
- msgid "View all posts in %s"
106
- msgstr "Смотреть все записи в %s"
21
  "X-Poedit-SearchPathExcluded-0: *.js\n"
22
 
23
  #: CPTP/Module/Admin.php:31
24
+ msgid "Permalink Settings for Custom Post Types"
25
  msgstr "Настройки структуры ссылок для записей произвольного типа"
26
 
27
  #: CPTP/Module/Admin.php:52
29
  msgstr "Структура постоянных ссылок для архива таксономии."
30
 
31
  #: CPTP/Module/Admin.php:62
32
+ msgid "Add <code>post_type</code> query for custom taxonomy archive."
33
  msgstr "Добавить запрос post_type для архива таксономии."
34
 
35
  #: CPTP/Module/Admin.php:74
36
+ msgid "The tags you can use is WordPress Structure Tags and '%\"custom_taxonomy_slug\"%"
37
  msgstr "Настройки постоянных ссылок для записей произвольного типа."
38
 
39
  #: CPTP/Module/Admin.php:75
45
  "%custom_taxonomy_slug%</code> (например <code>%actors%</code>)."
46
 
47
  #: CPTP/Module/Admin.php:76
48
+ msgid "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term."
49
  msgstr ""
50
  "(Замените <code>%custom_taxonomy_slug%</code> на ярлык своей таксономии.)"
51
 
68
 
69
  #: CPTP/Module/Admin.php:80
70
  msgid ""
71
+ "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>."
 
72
  msgstr ""
73
  "Если вы оставите поле пустым будет установлено значение по умолчанию <code>/"
74
  "%postname%/</code>."
76
  #: CPTP/Module/Admin.php:128
77
  #, php-format
78
  msgid ""
79
+ "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>."
 
80
  msgstr ""
81
  "При выборе произвольная структура URL для таксономии будет <code>%s/"
82
  "post_type/taxonomy/term</code>."
83
 
84
  #: CPTP/Module/Admin.php:135
85
+ msgid "Custom taxonomy archive also works as post type archive. "
86
  msgstr ""
87
  "Архив пользовательской таксономии также работает как архив типа записи.&nbsp;"
88
 
89
  #: CPTP/Module/Admin.php:136
90
+ msgid "There are cases when the template to be loaded is changed."
91
  msgstr "Бывают случаи, когда изменяется загрузка шаблона."
92
 
93
  #: CPTP/Module/Admin.php:163
98
  "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink."
99
  "php'>Permalinks</a>, set a custom permalink for each post type.</p>"
100
 
 
 
 
 
language/cptp.pot ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WordPress Blank Pot
2
+ # Copyright (C) 2014 ...
3
+ # This file is distributed under the GNU General Public License v2 or later.
4
+ #, fuzzy
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Custom Post Type Permalinks Pot v1.0.0\n"
8
+ "POT-Creation-Date: 2015-11-23 10:45+0900\n"
9
+ "PO-Revision-Date: \n"
10
+ "Last-Translator: Your Name <you@example.com>\n"
11
+ "Language-Team: Toro_Unit <mail@torounit.com>\n"
12
+ "Report-Msgid-Bugs-To: Translator Name <translations@example.com>\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
+ "X-Textdomain-Support: yesX-Generator: Poedit 1.6.4\n"
18
+ "X-Poedit-SourceCharset: UTF-8\n"
19
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html_x:1,2c;esc_html__;esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;"
20
+ "__ngettext_noop:1,2;_c,_nc:4c,1,2\n"
21
+ "X-Poedit-Basepath: ..\n"
22
+ "Language: en_US\n"
23
+ "X-Generator: Poedit 1.8.6\n"
24
+ "X-Poedit-SearchPath-0: .\n"
25
+
26
+ #: CPTP/Module/Admin.php:29
27
+ msgid "Permalink Settings for Custom Post Types"
28
+ msgstr ""
29
+
30
+ #: CPTP/Module/Admin.php:51
31
+ msgid "Use custom permalink of custom taxonomy archive."
32
+ msgstr ""
33
+
34
+ #: CPTP/Module/Admin.php:62
35
+ msgid "Add <code>post_type</code> query for custom taxonomy archive."
36
+ msgstr ""
37
+
38
+ #: CPTP/Module/Admin.php:75
39
+ msgid "Set the permalinks of your Custom Post Types."
40
+ msgstr ""
41
+
42
+ #: CPTP/Module/Admin.php:76
43
+ msgid "The tags you can use are WordPress Structure Tags and <code>%\"custom_taxonomy_slug\"%</code> (e.g. <code>%actors%</code> or <code>%movie_actors%</code>)."
44
+ msgstr ""
45
+
46
+ #: CPTP/Module/Admin.php:78
47
+ msgid "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term."
48
+ msgstr ""
49
+
50
+ #: CPTP/Module/Admin.php:80
51
+ msgid "Presence of the trailing '/' is unified into a standard permalink structure setting."
52
+ msgstr ""
53
+
54
+ #: CPTP/Module/Admin.php:81
55
+ msgid "If <code>has_archive</code> is true, add permalinks for custom post type archive."
56
+ msgstr ""
57
+
58
+ #: CPTP/Module/Admin.php:82
59
+ msgid "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>."
60
+ msgstr ""
61
+
62
+ #: CPTP/Module/Admin.php:124
63
+ #, php-format
64
+ msgid "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>."
65
+ msgstr ""
66
+
67
+ #: CPTP/Module/Admin.php:131
68
+ msgid "Custom taxonomy archive also works as post type archive. "
69
+ msgstr ""
70
+
71
+ #: CPTP/Module/Admin.php:132
72
+ msgid "There are cases when the template to be loaded is changed."
73
+ msgstr ""
74
+
75
+ #: CPTP/Module/Admin.php:157
76
+ msgid "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink.php'>Permalinks</a>, set a custom permalink for each post type.</p>"
77
+ msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.1
6
- Tested up to: 4.3
7
- Stable tag: 1.2.0
8
  License: GPLv2 or Later
9
 
10
  Edit the permalink of custom post type.
@@ -61,6 +61,10 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 1.2.0 =
65
  * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
66
  * Add action `CPTP_registered_modules`.
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.1
6
+ Tested up to: 4.4
7
+ Stable tag: 1.3.0
8
  License: GPLv2 or Later
9
 
10
  Edit the permalink of custom post type.
61
 
62
  == Changelog ==
63
 
64
+
65
+ = 1.3.0 =
66
+ * bugfix for polylang.
67
+
68
  = 1.2.0 =
69
  * Add filter `cptp_post_type_link_priority`, `cptp_term_link_priority`, `cptp_attachment_link_priority`.
70
  * Add action `CPTP_registered_modules`.