-
-
Save iHwy/47a28a33763b18b7ee9e5556e8e5fd24 to your computer and use it in GitHub Desktop.
Revisions
-
cre8tivediva revised this gist
Jun 2, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ * Rename slug in Genesis Portfolio Plugin. * * @author Anita Carter * @link https://cre8tivediva.com/rename-genesis-portfolio-slug */ function rename_portfolio_custom_post_type_slug() { $args = get_post_type_object( 'portfolio' ); -
cre8tivediva revised this gist
Jun 2, 2017 . No changes.There are no files selected for viewing
-
cre8tivediva revised this gist
Jun 1, 2017 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ <?php //* Do NOT include the opening php tag shown above. Copy the code shown below. add_action( 'init', 'rename_portfolio_custom_post_type_slug', 5 ); -
cre8tivediva revised this gist
Jun 1, 2017 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ <?php //* Do NOT include the opening php tag shown above. Copy the code shown below. add_action( 'init', 'rename_portfolio_custom_post_type_slug', 5 ); /** * Rename slug in Genesis Portfolio Plugin. -
cre8tivediva revised this gist
Jun 1, 2017 . 1 changed file with 12 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,13 @@ add_action( 'init', 'rename_portfolio_custom_post_type_slug', 5 ); /** * Rename slug in Genesis Portfolio Plugin. * * @author Anita Carter * @link https://cre8tivediva.com/genesis-portfolio-pro-renaming-the-slug */ function rename_portfolio_custom_post_type_slug() { $args = get_post_type_object( 'portfolio' ); $args->rewrite['slug'] = 'your-new-name'; register_post_type( $args->name, $args ); } -
cre8tivediva revised this gist
Jun 1, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ // Genesis Portfolio Pro - Renaming the Slug function rename_portfolio_custom_post_type_slug() { $args = get_post_type_object("portfolio"); $args->rewrite["slug"] = "your-new-name"; -
cre8tivediva revised this gist
May 29, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ // Rename Portfolio CPT Slug to One of Your own function rename_portfolio_custom_post_type_slug() { $args = get_post_type_object("portfolio"); $args->rewrite["slug"] = "your-new-name"; register_post_type($args->name, $args); } add_action('init', 'rename_portfolio_custom_post_type_slug', 5); -
cre8tivediva created this gist
May 29, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ // Change Portfolio CPT Slug to One of Your own function change_slug_portfolio_custom_post_type() { $args = get_post_type_object("portfolio"); $args->rewrite["slug"] = "your-new-name"; register_post_type($args->name, $args); } add_action('init', 'change_slug_portfolio_custom_post_type', 5);