Okay
  Public Ticket #1739267
Translate portfolio slug WPML
Closed

Comments

  • Essapunt started the conversation

    Hello!

    I have installed WPML, it's work correctly but I can't translate portfolio slug
    Can You help me ASAP, please?

    Best regards, 
    Mar

  •  468
    Qode replied

    Hello,

    As portfolio slug must be unique it can't be different for different languages. Portfolio slug refers to portfolio single post or a group of posts, therefore, such change is not possible for technical reasons. Thank you for understanding.

    Let me know if there's anything else.

    John

    The new and improved Online Bridge Documentation is live. Check it out now - http://bridge.qodeinteractive.com/

    QodeThemes Support Specialist

  • Essapunt replied

    Hello!

    I'm surprised by your answer, Bridge Theme is a very powerful tool... ┬┐How is it possible that the base category of the portfolio can't be translated? How am I supposed to apply an international SEO strategy if I can't translate the portfolio base slug?

    I have worked with dozens of Themes and it's the first time that the slug portfolio isn't translatable ... Maybe I haven't formulated my initial question well ...?

    I need to be able to translate this (view attached)

    English: Projects/project-name/
    Spanish: Proyectos/nombre-proyecto/

    Is it really not possible to translate this with WPML or natively with Bridge? Doesn't code exist that I can apply to .php?

    I look forward to your response, ASAP.

    Best regards;
    Mar

    Attached files:  Translate Slug Portfolio.png

  •  468
    Qode replied

    Hi again Mar,

    There's a way to translate portfolio single slug, but you'll need to add some parameters to template files.

    Navigate to wp-content\themes\bridge\includes\qode-custom-post-types.php

    and paste this code below if condition on 10th line

    if(get_bloginfo('language') == "es-ES"){
        $slug = 'your-slug';
    }
    

    So it looks like this 

    This will translate the portfolio single slug when you're running spanish language.

    You should, of course, switch 'your-slug' with the desired label and go to Settings > Permalinks and make sure you're using "Post Name" for Common Settings.

    If you're already using that, please re-save permalinks.

    Hope this was helpful, let me know.

    John

    The new and improved Online Bridge Documentation is live. Check it out now - http://bridge.qodeinteractive.com/

    QodeThemes Support Specialist

  • Essapunt replied

    Hi John!

    Thank you very much for providing a solution ... I will implement the code that you send me and I will inform you of the results.

    Best regard!
    Mar

  •  468
    Qode replied

    Hi Mar,

    Please try it out and keep us posted how it went.

    Also, if you need anything else, don't hesitate to submit another ticket.

    We are always here to help.

    Have a nice day!

    Sasha S

    The new and improved Online Bridge Documentation is live. Check it out now - http://bridge.qodeinteractive.com/

    QodeThemes Support Specialist