How to change Divi Project slug to something else

TIPS

Jun 27, 2018 | Divi Tips | 1 comment

Are you using the Divi Projects for something other than projects? You may want to change the permalink (or URL) to say something other than “project”.

You’ll need to use a child theme and paste the following into the functions.php file. You can find this in Appearance > Editor.

Change the YOUR-NEW-NAME to whatever you like.

[php]
add_filter( ‘et_project_posttype_rewrite_args’, ‘wpc_projects_slug’, 10, 2 );
function wpc_projects_slug( $slug ) {
$slug = array( ‘slug’ => ‘YOUR-NEW-NAME’ );
return $slug;
}
[/php]

1 Comment

  1. Hi,

    this code doesn’t work for 4.8.1.
    Any Updates?

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields