Change the slug of portfolio post type in Hestia

If you want to change the slug of portfolio post type then create a site-specific plugin and add the following code it.

add_filter( 'register_post_type_args', 'update_portfolios_slug', 10, 2 );
function update_portfolios_slug( $args, $post_type ) {
 if ( 'jetpack-portfolio' === $post_type ) {
        $args['rewrite']['slug'] = 'projects';
  return $args;

Change "projects" to any text you'd like to use for the slug

After adding the code don't forget to "refresh" your Permalinks by going to Settings > Permalinks and hit Save changes button.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us