• Resolved metisdreams

    (@metisdreams)


    Although the majority of a test site I’ve created seems to work well with TranslatePress, the job listings on the home page all go to 404 pages if the second language is selected for the page. These are custom posts created by WP Job Manager and are output dynamically on the home page listing. I’ve read through the other support threads related to 404 pages as well as the TranslatePress documentation regarding pretty permalinks but am not sure why these links are not being translate. How can I get this to work?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter metisdreams

    (@metisdreams)

    Also, after looking into this more closely, if the permalinks on the main listing page did not change the language of the custom post base in the permalink structure (i.e. just keep them as the default “jobs” instead of translating to the second language’s “jobb”) it would work and not go to a 404 page as the single custom posts are using the English url base of “job” for all languages.
    Is there a way to make sure that the main listing does not translate the URL base to “jobb”?

    Hello there,

    You should be able to solve this by translating the “jobb” to job using Loco Translation.

    Here is an example, by default on the Spanish version the job permalink is translated to trabajo. Simply translate that (in your case it will be jobb) to job.

    After you do this, you need to go to: Settings -> TranslatePress -> Advanced tab -> Exclude strings -> Exclude Gettext Strings.
    Here you need to add the original job string in the Gettext String field and the plugin’s domain in the Domain field (the domain is “wp-job-manager”).

    Here you have an image as an example. It has to be exactly like this for you as well.

    Adding the job string in that exclude field will mean that TranslatePress will no longer process the permalink and the translation will be the one from the .po/.mo file (the one done with Loco Translate).

    This should solve the issue with job being translated as jobb.

    Best regards,

    Thread Starter metisdreams

    (@metisdreams)

    Thank you so much, this worked!

    That said, so that I fully understand your plugin and also if my client requests the permalinks to be in Norwegian, is it possible for TranslatePress to process the permalinks in the secondary language and have them work without having to change them all to match the original English (in my case)?

    Hello,

    If you want to translate the job and jobs part of the slug, you might be able to do it using Loco Translate.

    Another solution could be to use our SEO Pack addon. That will also let you translate the rest of the URL as well. You can read more about it here: https://translatepress.com/docs/addons/seo-pack/

    In case you have any questions regarding this addon, please open a pre-sale question on our sites because we aren’t allowed to speak about the paid version here. I think mentioning it is fine, but anything more than that isn’t.

    Best regards,
    Cristian

    Thread Starter metisdreams

    (@metisdreams)

    Thanks again for your suggestions. I will see what I can do with Loco Translate and also look more closely at the SEO Pack addon.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Job Manager and 404 errors’ is closed to new replies.