• Resolved adrivall

    (@adrivall)


    Hi,

    I have a question, I’m using your plugin within a multilingual WordPress (polylang). And my question is about slug.

    In the settings, i can set up slugs :

    • Jobpost Custom Post Type Slug
    • Job Category Taxonomy Slug:
    • Job Type Taxonomy Slug:
    • Job Location Taxonomy Slug:

    How can i have a slug for each language ?

    For exemple i’m french and i choose “Offres d’emploi” for the Jobpost. I’d like to set up “Job offers” for english version.

    Thanks.
    Adrien

    • This topic was modified 7 years ago by adrivall.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hello Adrien,

    Your question is closer to Polylang plugin as these slugs are managed by this plugin. So we suggest you please explore the Polylang plugin for your query & contact to support team of Polylang. As SJB is not dealing with it.

    Thank you for reaching us out. Let us know if we can help you further.

    Thread Starter adrivall

    (@adrivall)

    Hello,

    Thanks you for you answer.
    We are using the free version of polylang, so we cannot translate taxonomy slugs and post types.

    “But” we found a solution thanks to Loco translate which should interest you :

    1- We’ve desactivated the archive page (line 244 of …post-type-jobpost.php)
    2- We’ve changed the ‘rewrite option (line 245 same file) with this :
    ‘rewrite’ => array(‘slug’ => __('join-us', 'simple-job-board'), ‘hierarchical’ => TRUE, ‘with_front’ => FALSE),

    –> “join-us” is the slug of my listing page in english

    3- go to Loco translate refresh the POT, and translate “join-us” in french –> “rejoignez-nous”.
    The slug of my french listing is “rejoignez-nous”.

    So now i have:

    https://www.my-site.com/rejoignez-nous (French listing)
    https://www.my-site.com/rejoignez-nous/a-french-offer

    https://www.my-site.com/join-us (English listing)
    https://www.my-site.com/en/join-us/an-english-offer

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘polylang compatibility and slug’ is closed to new replies.