How To Set A Custom Permalink For Portfolio Posts
-
Hi! I am just wondering if there is a way with the Basel theme to set custom permalinks for the portfolio posts.
Right now, the portfolio posts are: http://www.thecapecollective.com/portfolio/post-name
I want it to read: http://www.thecapecollective.com/artists/post-name
Or even: http://www.thecapecollective.com/post-name
Thanks for any help!
Hello,
Thank you for the question.
Unfortunately, there is no such option in our theme and the only one way to change portfolio permalinks structure at the moment is to edit file wp-content/plugins/basel-post-types.php
and replace the a line
'rewrite' => array('slug' => 'portfolio'),
with this one
'rewrite' => array('slug' => 'artists'),
Regards
So if I am working off the Basel Child theme, how would I go about changing that line of code? Is it in the original theme folder I downloaded and would I then have to re-upload that Basel Child theme to WordPress?
Unfortunately, this line can’t be changed via child theme. You need to change the line inside the plugin. But the good news that the plugin is not updated frequently.