[Resolved] WP Jobmanager bookmark in other language empty
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is developing a site using WPML with WP Job Manager and is facing an issue where bookmarks set in one language do not appear when switching to another language.
Solution: We recommend the following steps after ensuring a full site backup:
1) Navigate to
/wp-content/plugins/wp-job-manager-bookmarks
and open
wp-job-manager-bookmarks.php
for editing. 2) Modify the code at line 356 and line 407 to include WPML filters that handle translations of bookmarked posts. This ensures that when a post is bookmarked in one language, it is recognized across all translations.
3) To prevent duplicate bookmark entries appearing for each language on the bookmark page, modify the
directory. Update the loop handling the display of bookmarks to check the language code of the bookmark against the current language and only display bookmarks that match.
Please refer to the following thread for more details.
If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am developing a site and using WPML with WP Jobmanager. I am trying to bookmark (bookmark plugin of WP Jobmanager) a job in English and then switch to German.
Symptoms:
When I switch to German, the bookmark is not set.
Questions:
Can you please check this, may be this can also improved for the multilanguage usage with WPML.
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
I have created a new testing environment to track this compatibility conflict in our Cloudways test server. Please click the following URL to access the site's backend. Then, check whether you can reproduce the bug.
Hi,
Thanks, I installed the bookmark plugin but cannot translate the bookmark page, because automatic translation is started but cannot go further.
Can you please add the translation of the bookmark page?
Thanks, kind regards
Eric
Thank you for the details and reproducing the issue on the sandbox site. The ticket is escalated to our compatibility team. We will debug it further and get back to you as early as possible. Please wait.
Sorry for the late response. The fix for this issue was a bit complicated. Finally, our compatibility team found a workaround for this. Please try the following fix after a full site backup {mandatory} and make sure you are getting the expected results or not.
1) Visit */wp-content/plugins/wp-job-manager-bookmarks* folder
2) Open *wp-job-manager-bookmarks.php* file for edit
3) Scroll down to line 356
4) Make the following changes
These codes will help us to bookmark and unbookmark a post in all languages. But this will cause duplicate entries on the bookmark page — one for each language. To resolve this, we recommend modifying the template to ensure bookmarks function as expected.
1) Visit */wp-content/plugins/wp-job-manager-bookmarks/templates/* folder
2) Open *my-bookmarks.php* file for edit
3) Scroll down to line 27
4) Make the following changes