admin管理员组

文章数量:1122846

My first help-question here :)

Using Divi theme, i found that Project custom post type let you add your portfolio projects, while having PROJECT slug in the URL. The web is full of tutorial about changing that slug, but i'd love tu change the project slug with the category of that posted project.

I found this on StackExchange but it didn't work out for me :( Change the url of Projects in Divi Theme

My issue is the same:

  • I have 2 different project with 2 different categories. Project 1 with Category A, and Project 2 with Category B.
  • The url, right now, is homepage/project/project-1

  • I'd love to be homepage/category-a/project-1 and homepage/category-b/project-2

Is it even possible?

Thank you for your time and your help!

My first help-question here :)

Using Divi theme, i found that Project custom post type let you add your portfolio projects, while having PROJECT slug in the URL. The web is full of tutorial about changing that slug, but i'd love tu change the project slug with the category of that posted project.

I found this on StackExchange but it didn't work out for me :( Change the url of Projects in Divi Theme

My issue is the same:

  • I have 2 different project with 2 different categories. Project 1 with Category A, and Project 2 with Category B.
  • The url, right now, is homepage.com/project/project-1

  • I'd love to be homepage.com/category-a/project-1 and homepage.com/category-b/project-2

Is it even possible?

Thank you for your time and your help!

Share Improve this question asked Mar 12, 2018 at 10:59 GangatmbGangatmb 11 silver badge3 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can use Custom Post Type Permalinks extension. Open breadcrumbs settings and add /%project_category% in Permalink Settings for Custom Post Types. Save. Done. That's how I figured it out.

本文标签: categoriesDivi change project slug based on category