how to change the portfolio permalink (slug)?

I want to change the slug “portfolio” to “features”

for example:

mysite.com/portfolio/abc => mysite.com/features/abc

and

mysite.com/portfolio => mysite.com/features

is it possible?

Hi @guilhermeit,

I hope you are well today and thank you for your question.

The portfolio section is displayed by the Jetpack plugin and you can change its permalink structure by using the solution provided on the following page.

Best Regards,
Movin

hi, where I have to put this code:

add_filter( 'portfolioposttype_args', 'prefix_change_portfolio_labels' );
/**
 * Change post type labels and arguments for Portfolio Post Type plugin.
 *
 * @param array $args Existing arguments.
 *
 * @return array Amended arguments.
 */
function prefix_change_portfolio_labels( array $args ) {
    $labels = array(
        'name'               => __( 'Projects', 'portfolioposttype' ),
        'singular_name'      => __( 'Project', 'portfolioposttype' ),
        'add_new'            => __( 'Add New Item', 'portfolioposttype' ),
        'add_new_item'       => __( 'Add New Project', 'portfolioposttype' ),
        'edit_item'          => __( 'Edit Project', 'portfolioposttype' ),
        'new_item'           => __( 'Add New Project', 'portfolioposttype' ),
        'view_item'          => __( 'View Item', 'portfolioposttype' ),
        'search_items'       => __( 'Search Projects', 'portfolioposttype' ),
        'not_found'          => __( 'No projects found', 'portfolioposttype' ),
        'not_found_in_trash' => __( 'No projects found in trash', 'portfolioposttype' ),
    );
    $args['labels'] = $labels;

    // Update project single permalink format, and archive slug as well.
    $args['rewrite']     = array( 'slug' => 'project' );
    $args['has_archive'] = 'projects';
    // Don't forget to visit Settings->Permalinks after changing these to flush the rewrite rules.

    return $args;
}

You can create child theme of Shapely theme and add that code in the functions.php file of it.