Changing portfolio category slug

Hi there,

  1. I have a page that serves as “references” page for the portfolio.
  2. I changed the default “x-porfolio” at the theme settings to “references”
  3. I’ve build an archive layout for all portfolio categories
  4. when accessing a single portfolio item the url is: “…/references/name-of-the-reference/”
  5. when accessing the portfolio category page the url is:" …/references/references-category/name-of-the-category/"

Is it possible to remove the whole “/references-category/” so it just shows “…/references/name-of-the-category/” or at least remove the “-category” part?

Best regards
Mirco

Hello Mirco,

Thanks for writing to us.

The feature that you want would require custom development. I would suggest you contact a developer who can assist you with your concerns or you can subscribe to One where customization questions are answered. Please note we don’t provide custom development support. It is out of the support scope.

Alternatively, in case you have an idea about coding please have a look at this article or video for reference.

Thanks for understanding

Thanks,

I found this article already and tried the Wordpress and plugin solution. But I do not want to get rid of the category itself in the slug, but of the - in my point of view - unnecessary “/references-category/” in between.

I’m going to give the rewrite- and functions.php-method a try. :slight_smile:

best regards
Mirco

Hello Mirco,

The issue is more on the customization of the WordPress permalinks which is beyond the theme. Using the rewrite and custom php functions would help you achieve what you have in mind. Just make sure to maintain the code so that there is a WordPress core, theme or plugin updates, the code will still work for you.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.