Changeset 3308332
- Timestamp:
- 06/09/2025 08:14:21 AM (10 months ago)
- Location:
- taro-cpt-front
- Files:
-
- 6 edited
- 1 copied
-
tags/1.1.2 (copied) (copied from taro-cpt-front/trunk)
-
tags/1.1.2/includes/settings.php (modified) (2 diffs)
-
tags/1.1.2/readme.txt (modified) (3 diffs)
-
tags/1.1.2/taro-cpt-front.php (modified) (1 diff)
-
trunk/includes/settings.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/taro-cpt-front.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
taro-cpt-front/tags/1.1.2/includes/settings.php
r3231106 r3308332 22 22 if ( empty( $post_types ) ) { 23 23 printf( '<p class="description">%s</p>', esc_html__( 'No custom post types available.', 'tscptf' ) ); 24 printf( '<p class="description">%s</p>', esc_html__( 'Note that registered custom post type\'s public parameter must be true, and has_archive parameter must be false, to be able to set this option.', 'tscptf' ) ); 24 25 } else { 25 26 foreach ( $post_types as $post_type ) { … … 31 32 ); 32 33 } 34 // Description. 35 printf( 36 '<p class="description">%s</p>', 37 sprintf( 38 /* translators: %1$s is a link opening tag, %2$s is the link closing tag */ 39 esc_html__( 'When you change the post type selection, save changes. Then, you must flush the URL rewrite rules. Go to the %1$sPermalinks%2$s settings page. You do not need to change any settings. Click save changes.', 'tscptf' ), 40 '<a href="' . esc_url( admin_url( 'options-permalink.php' ) ) . '">', 41 '</a>' 42 ) 43 ); 33 44 } 34 // Description.35 printf(36 '<p class="description">%s » <a href="%s">%s</a></p>',37 esc_html__( 'Go permalink page on change.', 'tscptf' ),38 esc_url( admin_url( 'options-permalink.php' ) ),39 esc_html__( 'Go to Permalink', 'tscptf' )40 );41 45 }, 'reading', 'ts-cptf-section' ); 42 46 register_setting( 'reading', 'ts-cptf-post-types' ); -
taro-cpt-front/tags/1.1.2/readme.txt
r3233301 r3308332 2 2 =============================================== 3 3 4 Contributors: tarosky,Takahashi_Fumiki 4 Contributors: tarosky,Takahashi_Fumiki, tswallie 5 5 Tags: CPT 6 Requires at least: 5.9 7 Requires PHP: 7.4 8 Tested up to: 6.7 9 Stable Tag: 1.1.1 6 Tested up to: 6.8 7 Stable Tag: 1.1.2 10 8 License: GPLv3 or later 11 9 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 15 13 == Description == 16 14 17 CPT(Custom Post Pype e.g `book`) has URL structure like below:15 CPT(Custom Post Type e.g `book`) has URL structure like below: 18 16 19 17 - `/book/harry-potter` 20 - `/book/harry-potter/philosop ers-stone`18 - `/book/harry-potter/philosopher-stone` 21 19 22 20 If you need `/book` as a front page of CPT, this plugin works. 23 21 24 This plugin allow specific post type to have a "Front Page" and it's permalink will be at the root of URL prefix of CPT.22 This plugin allows specific post types to have a "Front Page" and its permalink will be at the root of URL prefix of CPT. 25 23 26 24 == Installation == … … 28 26 1. Search `taro-cpt-front` in plugin search in your WP admin. 29 27 2. Click "Install" and "Activate". 30 3. Go to "Setting " > "Wrting" and choose the post types to have a front page.28 3. Go to "Settings" > "Reading" and choose the post types to have a front page. 31 29 4. The page which you want to be a front page, check "Set as front page" from right side bar. 32 30 -
taro-cpt-front/tags/1.1.2/taro-cpt-front.php
r3233301 r3308332 1 1 <?php 2 2 /** 3 Plugin Name: Taro CPT Front 4 Description: Custom post types can have a front page. 5 Plugin URI: https://wordpress.org/plugins/taro-cpt-front/ 6 Author: Tarosky INC. 7 Version: 1.1.1 8 Author URI: https://tarosky.co.jp/ 9 License: GPL3 or later 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 Text Domain: tscptf 12 Domain Path: /languages 3 * Plugin Name: Taro CPT Front 4 * Description: Custom post types can have a front page. 5 * Plugin URI: https://wordpress.org/plugins/taro-cpt-front/ 6 * Author: Tarosky INC. 7 * Version: nightly 8 * Requires at least: 5.9 9 * Requires PHP: 7.4 10 * Author URI: https://tarosky.co.jp/ 11 * License: GPL3 or later 12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 13 * Text Domain: tscptf 14 * Domain Path: /languages 13 15 */ 14 16 -
taro-cpt-front/trunk/includes/settings.php
r3231106 r3308332 22 22 if ( empty( $post_types ) ) { 23 23 printf( '<p class="description">%s</p>', esc_html__( 'No custom post types available.', 'tscptf' ) ); 24 printf( '<p class="description">%s</p>', esc_html__( 'Note that registered custom post type\'s public parameter must be true, and has_archive parameter must be false, to be able to set this option.', 'tscptf' ) ); 24 25 } else { 25 26 foreach ( $post_types as $post_type ) { … … 31 32 ); 32 33 } 34 // Description. 35 printf( 36 '<p class="description">%s</p>', 37 sprintf( 38 /* translators: %1$s is a link opening tag, %2$s is the link closing tag */ 39 esc_html__( 'When you change the post type selection, save changes. Then, you must flush the URL rewrite rules. Go to the %1$sPermalinks%2$s settings page. You do not need to change any settings. Click save changes.', 'tscptf' ), 40 '<a href="' . esc_url( admin_url( 'options-permalink.php' ) ) . '">', 41 '</a>' 42 ) 43 ); 33 44 } 34 // Description.35 printf(36 '<p class="description">%s » <a href="%s">%s</a></p>',37 esc_html__( 'Go permalink page on change.', 'tscptf' ),38 esc_url( admin_url( 'options-permalink.php' ) ),39 esc_html__( 'Go to Permalink', 'tscptf' )40 );41 45 }, 'reading', 'ts-cptf-section' ); 42 46 register_setting( 'reading', 'ts-cptf-post-types' ); -
taro-cpt-front/trunk/readme.txt
r3233301 r3308332 2 2 =============================================== 3 3 4 Contributors: tarosky,Takahashi_Fumiki 4 Contributors: tarosky,Takahashi_Fumiki, tswallie 5 5 Tags: CPT 6 Requires at least: 5.9 7 Requires PHP: 7.4 8 Tested up to: 6.7 9 Stable Tag: 1.1.1 6 Tested up to: 6.8 7 Stable Tag: 1.1.2 10 8 License: GPLv3 or later 11 9 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 15 13 == Description == 16 14 17 CPT(Custom Post Pype e.g `book`) has URL structure like below:15 CPT(Custom Post Type e.g `book`) has URL structure like below: 18 16 19 17 - `/book/harry-potter` 20 - `/book/harry-potter/philosop ers-stone`18 - `/book/harry-potter/philosopher-stone` 21 19 22 20 If you need `/book` as a front page of CPT, this plugin works. 23 21 24 This plugin allow specific post type to have a "Front Page" and it's permalink will be at the root of URL prefix of CPT.22 This plugin allows specific post types to have a "Front Page" and its permalink will be at the root of URL prefix of CPT. 25 23 26 24 == Installation == … … 28 26 1. Search `taro-cpt-front` in plugin search in your WP admin. 29 27 2. Click "Install" and "Activate". 30 3. Go to "Setting " > "Wrting" and choose the post types to have a front page.28 3. Go to "Settings" > "Reading" and choose the post types to have a front page. 31 29 4. The page which you want to be a front page, check "Set as front page" from right side bar. 32 30 -
taro-cpt-front/trunk/taro-cpt-front.php
r3233301 r3308332 1 1 <?php 2 2 /** 3 Plugin Name: Taro CPT Front 4 Description: Custom post types can have a front page. 5 Plugin URI: https://wordpress.org/plugins/taro-cpt-front/ 6 Author: Tarosky INC. 7 Version: 1.1.1 8 Author URI: https://tarosky.co.jp/ 9 License: GPL3 or later 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html 11 Text Domain: tscptf 12 Domain Path: /languages 3 * Plugin Name: Taro CPT Front 4 * Description: Custom post types can have a front page. 5 * Plugin URI: https://wordpress.org/plugins/taro-cpt-front/ 6 * Author: Tarosky INC. 7 * Version: nightly 8 * Requires at least: 5.9 9 * Requires PHP: 7.4 10 * Author URI: https://tarosky.co.jp/ 11 * License: GPL3 or later 12 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 13 * Text Domain: tscptf 14 * Domain Path: /languages 13 15 */ 14 16
Note: See TracChangeset
for help on using the changeset viewer.