Created
July 27, 2015 12:31
-
-
Save thecodepoetry/0faaeace6fd456583d94 to your computer and use it in GitHub Desktop.
Portfolio category slug
This file contains 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 characters
add_filter( 'presscore_taxonomy_dt_portfolio_category_args', 'my_portfolio_category_slug' ); | |
function my_portfolio_category_slug( $taxonomy_args ) { | |
$taxonomy_args['rewrite'] = array('slug' => 'my-portfolio-category'); | |
return $taxonomy_args; | |
} |
Dear, it doesn't work at all
Worked perfectly -- thanks!
If I want to add the project parent category instead a custom slug, is it possible?
For example:
Doesn't work
Doesn't work
That work for me, did you rebuild your URLs (Settings -> Permalinks) ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code in your child theme functions.php to change portfolio category slug, replace "my-portfolio-category" with your custom slug