Home Forums Basel support forum How To Set A Custom Permalink For Portfolio Posts

How To Set A Custom Permalink For Portfolio Posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5398

    thecapeco
    Participant

    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!

    #5401

    Artem Temos
    Keymaster

    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

    #5402

    thecapeco
    Participant

    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?

    #5409

    Artem Temos
    Keymaster

    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.

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)