Before you ask please READ THIS

Change permalink wording "Works"

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.

How can I do that? Do I have to edit an php file?

Thank you!

Comments

  • Posts: 1,758
    Hello!
    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.
  • Thanks a lot, that worked for me!
  • Hello, I have a new question :)

    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!
  • Posts: 1,758
    Hi
    borzo83 said: I assume I have to manipulate again this line:
    define('A13_CUSTOM_POST_TYPE_WORK_SLUG', 'work');
    rather not.
    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
    Remember to rate our theme if you like it ;)
    All the Best.
  • Thank you!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!