To do this, we'll create a custom function.


You can do this in 2 ways - one is to use the included child theme. You see a 'functions.php' file in that you can add the following function to. The other approach is to use a plugin which allows you to add a function to your site easily.


For the second approach install the following plugin:

https://wordpress.org/plugins/my-custom-functions/


After activation you'll see a new option within 'Appearance > Custom Functions' where you can add a function.


Drop the following code into this space. Note that we're changing Portfolio to Project. You can of course decide what you wish to call it.


Note each reference to the word project - that is what you should change.



 

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'] = true;
    // Don't forget to visit Settings->Permalinks after changing these to flush the rewrite rules.

    return $args;
}

 




When this is done, you'll still need to do two things.


1) Within 'Pages' Change your Portfolio page to Project


2) Go to Settings > Permalinks and click Save