custom-post-type-permalinks
Last commit date
CPTP
11 years ago
language
11 years ago
CPTP.php
11 years ago
custom-post-type-permalinks.php
11 years ago
license.txt
12 years ago
readme.md
11 years ago
readme.txt
11 years ago
screenshot-1.png
14 years ago
readme.md
219 lines
| 1 | # Custom Post Type Permalinks |
| 2 | Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV |
| 3 | |
| 4 | Lets you edit the permalink of custom post type. |
| 5 | |
| 6 | ## Description |
| 7 | |
| 8 | Custom Post Type Permalinks lets you edit the permalink structure of custom post type. |
| 9 | |
| 10 | Change custom taxonomy archive's permalink to "example.org/post_type/taxonomy_name/term_slug". Can disable this fix. |
| 11 | |
| 12 | And support wp_get_archives( "post_type=foo" ). |
| 13 | |
| 14 | [](https://github.com/torounit/custom-post-type-permalinksThis Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks](https://github.com/torounit/custom-post-type-permalinks) |
| 15 | |
| 16 | Donation: Please send amazon.co.jp Gift to donate[at]torounit.com. |
| 17 | |
| 18 | ### Translators |
| 19 | |
| 20 | * French(fr_FR) - [](http://geoffrey.crofte.fr/Geoffrey Crofte](http://geoffrey.crofte.fr/](http://geoffrey.crofte.fr/) |
| 21 | * Japanese(ja) - [](http://www.torounit.com/Toro_Unit](http://www.torounit.com/](http://www.torounit.com/) |
| 22 | * Russian(ru_RU) - [](http://olart.ruOlart](http://olart.ru](http://olart.ru) |
| 23 | |
| 24 | ## Setting on Code |
| 25 | |
| 26 | Example: |
| 27 | |
| 28 | ``` |
| 29 | register_post_type( 'foo', |
| 30 | array( |
| 31 | "public" => true, |
| 32 | 'has_archive' => true, |
| 33 | "rewrite" => [ |
| 34 | "with_front" => true |
| 35 | ], |
| 36 | "cptp_permalink_structure" => "%post_id%" |
| 37 | ) |
| 38 | ); |
| 39 | ``` |
| 40 | |
| 41 | |
| 42 | ## Installation |
| 43 | |
| 44 | * Download the custom-post-type-permalinks.zip file to your computer. |
| 45 | * Unzip the file. |
| 46 | * Upload the `custom-post-type-permalinks` directory to your `/wp-content/plugins/` directory. |
| 47 | * Activate the plugin through the 'Plugins' menu in WordPress. |
| 48 | |
| 49 | That's it. You can access the permalinks setting by going to *Settings -> Permalinks*. |
| 50 | |
| 51 | |
| 52 | ## Screenshots |
| 53 | |
| 54 | * screenshot-1.png |
| 55 | |
| 56 | |
| 57 | ## Changelog |
| 58 | |
| 59 | ### 1.0.0 |
| 60 | |
| 61 | * Set Permalink enable register_post_type. |
| 62 | * Enable add post type query to taxonomy archives. |
| 63 | * Use Class Autoloader. |
| 64 | * Create Rewrite Rule on `wp_loaded` action. |
| 65 | * WordPress Code Format Fix. |
| 66 | * CPTP_Module_Permalink Bug Fix. |
| 67 | * Bug Fix. |
| 68 | * Use Semantic Versioning. |
| 69 | * Date Structure Fix. |
| 70 | * Use Category Base. |
| 71 | |
| 72 | ### 0.9.7 |
| 73 | |
| 74 | * Adding date slug only conflicting %post_id%. |
| 75 | * Change taxonomy link rewrite rule. Use post_type. |
| 76 | * Can change template include custom taxonomy. |
| 77 | |
| 78 | ### 0.9.6 |
| 79 | |
| 80 | * Category and author. |
| 81 | * French Transration. Thanks Geoffrey! |
| 82 | * Hierarchial Term Fix. |
| 83 | |
| 84 | ### 0.9.5.6 |
| 85 | |
| 86 | * Strict Standard Error Fix. |
| 87 | |
| 88 | ### 0.9.5.4 |
| 89 | |
| 90 | * archive link bug fix. |
| 91 | * Tested Up 3.9 |
| 92 | |
| 93 | ### 0.9.5.3 |
| 94 | |
| 95 | * “/”bug fix. |
| 96 | * taxonomy tmplate bug fix. |
| 97 | |
| 98 | ### 0.9.5.2 |
| 99 | |
| 100 | * Archives Rewrite Fix. |
| 101 | |
| 102 | ### 0.9.5.1 |
| 103 | |
| 104 | * Admin Bug Fix. |
| 105 | |
| 106 | ### 0.9.5 |
| 107 | |
| 108 | * Big change plugin architecture. |
| 109 | * Show has_archive, with_front. |
| 110 | |
| 111 | ### 0.9.4 |
| 112 | |
| 113 | * Internal release. |
| 114 | |
| 115 | ### 0.9.3.3 |
| 116 | |
| 117 | * has_archive Bug Fix. |
| 118 | * Fixed a bug in the link, including the extension. |
| 119 | |
| 120 | ### 0.9.3.2 |
| 121 | |
| 122 | * wp_get_archives Bug Fix. |
| 123 | |
| 124 | ### 0.9.3.1 |
| 125 | |
| 126 | * Tested 3.6 |
| 127 | * Bug Fix. |
| 128 | |
| 129 | |
| 130 | ### 0.9.3 |
| 131 | |
| 132 | * Admin page fix. |
| 133 | * slngle pageing link fix. |
| 134 | * Add Russian translation. |
| 135 | |
| 136 | |
| 137 | ### 0.9 |
| 138 | |
| 139 | * Add custom post type archive only has_archive->true |
| 140 | * Change method name. |
| 141 | * Change hook custom post link. |
| 142 | * Use Slug in wp_get_archive(). |
| 143 | * Fix attachment link. |
| 144 | |
| 145 | |
| 146 | ### 0.8.7 |
| 147 | |
| 148 | * Translate Bug Fix. |
| 149 | |
| 150 | ### 0.8.6 |
| 151 | |
| 152 | * Paging Bug Fix. |
| 153 | * Commnent Paging. |
| 154 | * Show pointer. |
| 155 | * |
| 156 | |
| 157 | ### 0.8.1 |
| 158 | |
| 159 | * Bug Fix. |
| 160 | |
| 161 | ### 0.7.9.1 |
| 162 | |
| 163 | * Support Comment permalink. |
| 164 | * Small change in setting page. |
| 165 | * Change default value. |
| 166 | * Bug Fix. |
| 167 | |
| 168 | ### 0.7.8 |
| 169 | |
| 170 | * Bug fix. |
| 171 | |
| 172 | |
| 173 | ### 0.7.7 |
| 174 | |
| 175 | * Bug fix. |
| 176 | |
| 177 | ### 0.7.6 |
| 178 | |
| 179 | * Add parent's slug to hierarchical post type. |
| 180 | |
| 181 | |
| 182 | ### 0.7.5 |
| 183 | |
| 184 | * Add ability to disable to change custom taxonomy archive's permalink. |
| 185 | |
| 186 | |
| 187 | ### 0.7.4 |
| 188 | |
| 189 | * Bug fix taxonomy rewrite. |
| 190 | |
| 191 | |
| 192 | ### 0.7.3 |
| 193 | |
| 194 | * Changed part for saving the data. |
| 195 | |
| 196 | ### 0.7.2 |
| 197 | |
| 198 | * Reweite bug fix. |
| 199 | * Prewview bug fix. |
| 200 | |
| 201 | ### 0.7.1 |
| 202 | |
| 203 | * Bug fix. |
| 204 | |
| 205 | ### 0.7 |
| 206 | |
| 207 | * Add %{taxonomy}% tag. |
| 208 | * A large number of Bug Fix. |
| 209 | * Change Setting Page. Use Setting API. |
| 210 | |
| 211 | |
| 212 | ### 0.6.2 |
| 213 | |
| 214 | * Fix %author% tag. |
| 215 | |
| 216 | ### 0.6 |
| 217 | |
| 218 | * First release on wordpress.org |
| 219 |