Home›Toolset Professional Support›[Resolved] Split: Posts created/updated in 2nd language only visible in 2nd language – update post form with wpml with translations
[Resolved] Split: Posts created/updated in 2nd language only visible in 2nd language – update post form with wpml with translations
This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Great that you managed to duplicate the site locally. 😉
So, if you're logged in as a Nanny or a Family, you will see a person icon in the menu - there you can either go onto Manage Nanny Ads/Manage Job Ads, depending on what you logged in as. With the mckowski@hotmail.com user for which I provided you access, it has both roles. It's very useful so you don't have to keep switching.
There you can edit individual Ads. It just calls up the relevant Edit Ad Form in a View on a Page.
And yes, all Ad creation and Edits should happen via the frontend.
Please let me know if you need any more assistance.
Looking forward to hearing from you soon with some progress. In the meantime, I have related questions regarding the settings:
1) What setting should we have set on Custom Fields Translation preferences for each custom field under Toolset > Custom Fields > (go into a field group, and open a field) ?
2) Is this overridden by the Translation setting under WPML > Settings > Custom Fields Translation? Or are the two unrelated?
3) Are the settings in 2) overridden completely by WPML > Settings > Post Types Translation?
Now, regarding translation of "type of work" taxonomy, there was a silly mistake that I've corrected where I've changed the $post->ID to $post_id that is added to the "edit-native-nanny-ads" code snippet.
I've changed the following line of code from:
I can see that when you change the Type of work to any other option, its associated translations are automatically set. Please make sure you need to check for Type of Work taxonomy only for now that is the only translation code we added. You need to add such custom code for the other taxonomies you have.
I tested with one Nanny Ad - the Type of Work is changing in all languages. This is another step forward. 😀
As I mentioned earlier, I am not a PHP programmer, but I am quite technical in other areas, so if I were to repeat this for all other taxonomies, can I just duplicate lines 25-27 and replace the 'type-of-work' with the other slugs, specifying new variables instead of $trans_types_of_work?
Also would I need to repeat/duplicate lines 31-33 in a similar way?
Sorry for the delayed response, I'm in Brazil on holiday and internet connection is very weak.
Thanks for the updates to the code. I will try to review this in the coming two days, I need to find a better internet connection to navigate round WordPress Admin comfortably, The connection keep dropping here.
Please be aware there may be longer delays from me whilst on holiday, I will keep trying to check in now and again to review updates.
It is ok but what I have help you with is already above and beyond the scope of our support policy. I hope it should work and accordingly you need to adjust the code as per your requirement or even you have a choice to hire pro developer who can help you with your custom requirements.
Thank you for understanding and please feel free to close this ticket 🙂 - enjoy your vacation and free time.