• Resolved booking

    (@booking)


    Good-day,

    I want to translate the permalinks and I found a code to add to the functions’theme, the code is: add_filter(‘post_type_link’, ‘qtrans_convertURL’); . I added it, but I can’t translate the permalinks. Must I do something else or I need more code to make the translation?

    https://wordpress.org/plugins/qtranslate/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter booking

    (@booking)

    Where must I put the code add_filter(‘post_type_link’, ‘qtrans_convertURL’); in the functions’theme?

    Hi!

    You must pot this code
    add_filter('post_type_link', 'qtrans_convertURL');
    in the file functions.php that is inside of the Theme folder you’are working with.

    I’m also searching where can I modify the permalinks. If you find the answer can you notice me please? thank you!

    Thread Starter booking

    (@booking)

    I put the code in the functions.php of the theme, but I can’t use the shortcodes to change the permalinks. I used : [:en] and <!–:en–>, but it doesn’t work, maybe is there another way?

    Hey,
    to translate my web and permalinks I’m using 2 plugins and it runs ok and very easy:
    qTranslate
    qTranslate Slug – with this you can manage the permalinks (slug).
    Have a try!

    Thread Starter booking

    (@booking)

    It works. Thank you

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How can I work with the code for the permalink?’ is closed to new replies.