The Divi theme includes a custom post type called “Projects”. These projects make it easy to add and organize portfolio type content on your website without having to use posts and the post categories and tags. Projects come with their own taxonomies (project categories and project tags).
However it’s not possible in Divi to change the URL slug of these projects from /projects/ to /houses/ or /paintings/ for example. In this tutorial, we’ll show you how you can easily do this so the URL matches the purpose you’re using the projects for and increase your SEO. We’ll also explain how you can create your own custom post type and the advantages to that over using the built-in Divi projects.
Divi Projects URL Solution
To change the Divi projects URL, simply copy and paste the code below into your child theme’s functions.php file or using a plugin like Code Snippets:
Replace “custom-slug” in the code above with the slug you want to use.
For the new projects URL slug to take affect, we also need to go to the WordPress dashboard -> Settings -> Permalinks page and click the update button at the bottom of the page. That’s it. Any current and all new project URLs will be replaced with the new slug.
If you’re looking for an easy and advanced way to display your projects, please have a look at our Divi FilterGrid plugin. This plugin allows you to search, filter your projects by category and tag, display custom fields, display featured or gallery images in a lightbox window and loads more.
Create Your Own Custom Post Type
Another option instead of changing the built-in Divi projects slug is to simply create your own custom post type (full tutorial) using a free plugin called ACF. This plugin makes it very easy to add new custom post types to your site and offers several advantages over simply changing the projects slug.
The biggest advantage is that you can also create your own custom taxonomies (full tutorial) with the same plugin and add them to your custom post type. You can also add the new taxonomies to your blog posts or other post types, making it possible to search and filter multiple post types using the same taxonomy from a single interface.
For example you could create a recipes custom post type and also a restaurants custom post type and filter both by a new custom taxonomy called ethnicity. The terms of this taxonomy could be German, Italian, Greek, Mexican, etc. Our Divi FilterGrid plugin could then display both recipes and restaurants in the same grid and filter by the “ethnicity” taxonomy (or any taxonomy registered on your site).
The other primary advantage of the ACF plugin over simply changing the Divi projects slug is that you would have complete control over the new post type and taxonomies you create. The ACF plugin gives you a lot of options for each.
