WPJM with Polylang and FacetWP
-
We are facing several issues with WP Job Manager in our site, for which we would appreciate your support.
First, we are using the latest versions of WP, Listify, Polylang, FacetWP and of course WP Job Manager. We are using three different languages in our site (Greek, English and French).
The issues we have are:
1. When adding Job Listings, certain fields from the Listing Data, do carry over when switching languages (like the Company phone) but others do not. Those which do not carry over, from one language to the next, and which are a big issue for us are: Contact email/URL:, Company Website, Company Video and Company Logo/Avatar. These fields are all in latin characters, so they could carry over from one language to the next, without a problem. Location does not carry over too, but that can be language-specific, so it is not an issue.
2. The same is true for Custom fields. For example, if we enter a geolocation_lat and geolocation_long field, which obviously override the “Location” field, we would appreciate if they could carry over, when switching from one language to the other. Right now, we have to remember to enter these, at the last language listing we are entering, in order for them to be effective.
3. Finally, we have discovered a serious issue with the cooperation of WP Job Manager and FacetWP. The issue is related to how WPJM handles the “Featured” checkbox and is described below:
I have three job listings, which are translations of the same listing, Initially, they are all NOT featured. Their post_ids are 2472, 2473, 2474. In the database, I can verify that the menu_order field for all three listings is set to 0. Also, the _featured meta_key for all these posts is set to 0.
I use wp-admin to change the first listing (English, post_id 2472) to Featured. I can see in the database that the menu_order field for the English listing is set to -1 and the meta_key _featured is set to 1. (so far so good)
I then select the Greek translation of the listing (post_id 2473) and I also check the Featured checkbox for the Greek listing. In the database, I can see that the meta_key _featured for both the English and the Greek versions are now set to 1. HOWEVER, the menu_order for the English listing (post_id 2472) is set to 0, while the menu_order for the Greek listing (post_id 2473) is set to -1. In other words, for some reason, while the Greek post gets the correct value for menu_order, at the same time, the English post menu_order is changed from its correct value of -1 to 0.
If I now select the French translation (post_id 2474) and check the Featured checkbox for it, then the menu_order in my listings change for the French transalation, from 0 to -1 (as it should), but also it changes from -1 to 0, for the Greek translation.
In other words, initially:
post_id: 2472 menu_order: 0 meta_key _featured: 0
post_id: 2473 menu_order: 0 meta_key _featured: 0
post_id: 2474 menu_order: 0 meta_key _featured: 0After checking the Featured checkbox for 2472, things change as:
post_id: 2472 menu_order: -1 meta_key _featured: 1
post_id: 2473 menu_order: 0 meta_key _featured: 0
post_id: 2474 menu_order: 0 meta_key _featured: 0After checking the Featured checkbox for 2473, things change as:
post_id: 2472 menu_order: 0 meta_key _featured: 1
post_id: 2473 menu_order: -1 meta_key _featured: 1
post_id: 2474 menu_order: 0 meta_key _featured: 0After checking the Featured checkbox for 2474, things change as:
post_id: 2472 menu_order: 0 meta_key _featured: 1
post_id: 2473 menu_order: 0 meta_key _featured: 1
post_id: 2474 menu_order: -1 meta_key _featured: 1Right now, all posts show the Featured checkbox as checked, but please note that the menu_order field is set to -1 ONLY for the last post.
If I now uncheck the Featured checkbox from one of the listings (say I uncheck it for post_id 2474), another interesting thing happens.
The contents of the database change to:
post_id: 2472 menu_order: -1 meta_key _featured: 1
post_id: 2473 menu_order: -1 meta_key _featured: 1
post_id: 2474 menu_order: 0 meta_key _featured: 0Which seens to indicate that the program checks for the meta_key _featured and sets the menu_order to -1 for those posts which have _featured = 1 (which makes sense).
In other words, if I change the Featured checkbox of a listing, from checked to unchecked, the program checks for the _featured meta_key and sets the menu_order field properly, for all three listings. If I change the Featured checkbox from unchecked to checked, the program does not check for the _featured meta_key and resets the menu_order field to 0, for the other two posts.
We would appreciate your help on these issues.
- The topic ‘WPJM with Polylang and FacetWP’ is closed to new replies.