Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Portfolio page permalinks need to show their category, not generic “portfolio”

Home / Forums / Virtue Theme / Portfolio page permalinks need to show their category, not generic “portfolio”

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
September 30, 2019 at 10:41 pm

I would like the URLs for portfolio pages to include the category they are in, instead of the generic “portfolio” that WordPress supplies.

I do not want to change the Portfolio Permalink Base, because I have three different categories. Each page should show its category in place of the word “portfolio” in the URL. All of my pages are assigned to only one category, so there should be no ambiguity.

So, for a portfolio page of type FILMS, instead of
website.com/portfolio/portfolio-page, the URL would be website.com/films/portfolio-page

And for a portfolio page of type PHOTOS, instead of
website.com/portfolio/portfolio-page, the URL would be website.com/photos/portfolio-page

I would prefer not to use a plug-in for this unless it’s absolutely necessary. Does this require altering a functions file?

Thanks if you can help with this. I will post the site in a private reply.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.