You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For our project, we use WPML in combination with WP Job Manager. As you know, a default jobs page can be set where all of the job widgets (such as filters) and the job listings will appear. In our case, this page is called "Stellenangebote" ("Jobs" in german), which has been translated with WPML and has the following urls: "www.websitename/stellenangebote" (in german) and "www.websitename/it/offerte-di-lavoro" (in italian). The [jobs] shortcode is added in both versions of the page. In german, which is the website's main language (set through WPML), everything is working fine. On the same page, we also have a language switcher, which can switch to the italian version of the page on click. But when a user clicks on the switcher, instead of going to the translated url ("www.websitename/offerte-di-lavoro") it goes to "www.websitename/it/stellenangebote", which is a page that does not even exits. On "www.websitename/it/stellenangebote", everything still works fine, but if we click on the "Offerte di lavoro" page from the main menu, it goes to the page "www.websitename/it/offerte-di-lavoro", which looks broken and has no job widgets (although it does have a job list with default styling).
Our objective is to have one page with different slugs in different languages. So, when a user is on "www.websitename/stellenangebote" and clicks on the language switcher, it should be directed to "www.websitename/it/offerte-di-lavoro", where the job widgets, styling, and list should appear and function exactly like in the german version.
We tried looking through your plugin's code, and, as disclosed in the following thread ( #786 ), the issue should have been fixed and the plugin should be compatible with WPML as of now. So we don't understand what we've been doing wrong.
To Reproduce
Steps to reproduce the behavior:
Install WPML and WP Job Manager Plugins
Add a main and a secondary language to the website
Create some Jobs
Create and set a Jobs page (add [jobs] shortcode + add this page as the default Jobs page by clicking in admin menu on Jobs -> Pages -> Jobs page)
Create a translation of the Jobs page (click on the '+' near the page's title) for the secondary language
Change the url slug of the translated page (set anything, as long as it is different from the slug of the Jobs page in the main language)
Add a Job widget, f.e. a filter for a job category
Navigate to the default Jobs page in main language, everything should work fine and widget should be visible
Navigate to the url of the translated Jobs page, here wordpress does not show the widget and the page is styled as a default archive page
If you see a language switcher when on the main Jobs page, by clicking on the switcher you will be redirected to 'base url/secondary language code/same slug as the main jobs page'.
Expected behavior
By clicking the switcher, the user should be redirected to the url of the translated version of the jobs page. In addition, job widgets and styling should remain unchanged.
Isolating the problem (mark completed items with an [x]):
[X ] I have deactivated other plugins and confirmed this bug occurs when only WP Job Manager plugin is active.
This bug happens with a default WordPress theme active.
[ X] I can reproduce this bug consistently using the steps above.
WordPress Environment
WordPress Version: 6.1.1
WP Job Manager Version: 1.39
PHP Version: 7.4
The text was updated successfully, but these errors were encountered:
Describe the bug
For our project, we use WPML in combination with WP Job Manager. As you know, a default jobs page can be set where all of the job widgets (such as filters) and the job listings will appear. In our case, this page is called "Stellenangebote" ("Jobs" in german), which has been translated with WPML and has the following urls: "www.websitename/stellenangebote" (in german) and "www.websitename/it/offerte-di-lavoro" (in italian). The [jobs] shortcode is added in both versions of the page. In german, which is the website's main language (set through WPML), everything is working fine. On the same page, we also have a language switcher, which can switch to the italian version of the page on click. But when a user clicks on the switcher, instead of going to the translated url ("www.websitename/offerte-di-lavoro") it goes to "www.websitename/it/stellenangebote", which is a page that does not even exits. On "www.websitename/it/stellenangebote", everything still works fine, but if we click on the "Offerte di lavoro" page from the main menu, it goes to the page "www.websitename/it/offerte-di-lavoro", which looks broken and has no job widgets (although it does have a job list with default styling).
Our objective is to have one page with different slugs in different languages. So, when a user is on "www.websitename/stellenangebote" and clicks on the language switcher, it should be directed to "www.websitename/it/offerte-di-lavoro", where the job widgets, styling, and list should appear and function exactly like in the german version.
We tried looking through your plugin's code, and, as disclosed in the following thread ( #786 ), the issue should have been fixed and the plugin should be compatible with WPML as of now. So we don't understand what we've been doing wrong.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
By clicking the switcher, the user should be redirected to the url of the translated version of the jobs page. In addition, job widgets and styling should remain unchanged.
Isolating the problem (mark completed items with an [x]):
WordPress Environment
The text was updated successfully, but these errors were encountered: