Portfolio Permalink URL Structure Different From Blog

In my website settings, under Permalinks, I have a custom URL structure set up: /blog/%postname%/. This allows my single posts (blog articles) to be structured with /blog/ as the subdirectory for all my posts. Great, working as desired.

I have configured the Slug field in the Portfolio plugin (under Settings) to be ‘portfolio‘. When I click on an individual Portfolio Item, the slug for the item resolves to: /blog/portfolio/[portfolio-item]

I do not want to include ‘/blog/’ in my portfolio items URL, how do I remove this?

From searching around it appears modifying the functions.php of my child theme is needed, but I cannot figure out the code that will work. I've tried using "Muffin" specific variants of the code posted in these threads without any luck:


Comments

Sign In or Register to comment.