Hello, I want to change the permalink from "www.mysite.com/works/lorem-ipsum/" to "www.mysite.com/expeditions/lorem-ipsum/" for all Work Items generally.
borzo83 said: How can I do that? Do I have to edit an php file?
Yes, basicly one line in ..\wp-content\plugins\chillout-plugin\chillout-plugin.php line 25. change: define('A13_CUSTOM_POST_TYPE_WORK_SLUG', 'work'); to whatever you want
Remember to rate our theme if you like it All the Best.
Is it possible to make the slug name the same as the name of the genre.
Let's say I have 2 'Works', the first one (mywork-1) is assigned to the genre "Apple" and the second one (mywork-2) to "Pear". What I want is that the URL looks like this:
Work 1 assigned to genre "Apple": www.mysite.com/apple/mywork-1/
Work 2 assigend to genre "Pear": www.mysite.com/pear/mywork-1/
I assume I have to manipulate again this line: define('A13_CUSTOM_POST_TYPE_WORK_SLUG', 'work');
Comments
..\wp-content\plugins\chillout-plugin\chillout-plugin.php
line 25.change:
define('A13_CUSTOM_POST_TYPE_WORK_SLUG', 'work');
to whatever you want
All the Best.
Is it possible to make the slug name the same as the name of the genre.
Let's say I have 2 'Works', the first one (mywork-1) is assigned to the genre "Apple" and the second one (mywork-2) to "Pear". What I want is that the URL looks like this:
Work 1 assigned to genre "Apple":
www.mysite.com/apple/mywork-1/
Work 2 assigend to genre "Pear":
www.mysite.com/pear/mywork-1/
I assume I have to manipulate again this line:
define('A13_CUSTOM_POST_TYPE_WORK_SLUG', 'work');
But how?
Thanks in advance!
To rewrite slug dynamically better look for something like
https://pl.wordpress.org/plugins/custom-post-type-permalinks/
manipulate with permalink structure that will take taxonomy ('genre') in count
All the Best.