Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Created July 27, 2015 12:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodepoetry/0faaeace6fd456583d94 to your computer and use it in GitHub Desktop.
Save thecodepoetry/0faaeace6fd456583d94 to your computer and use it in GitHub Desktop.
Portfolio category slug
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;
}
@cdegourcy
Copy link

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