custom-post-type-permalinks
Last commit date
CPTP
8 years ago
assets
8 years ago
language
8 years ago
.svnignore
8 years ago
CONTRIBUTING.md
9 years ago
CPTP.php
8 years ago
LICENSE
9 years ago
custom-post-type-permalinks.php
8 years ago
readme.md
8 years ago
readme.txt
8 years ago
screenshot-1.png
14 years ago
readme.txt
294 lines
| 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.1 |
| 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 |