If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
September 24, 2013 at 2:41 pm #165646
I created a sidebar menu adding a Widget Area and using the Enfold Latest Portfolio widget, so that user can visit all my portfolio entries organized by portfolio categories. The issues come with translation: I translated portfolio cateogories and portfolio items, but I don’t know how to set different Enfold Latest Portfolio widgets for each language, because it lets me choose only portfolio categories of the main language.
Any help?September 26, 2013 at 1:44 am #166325September 26, 2013 at 9:28 am #166510
That plugin works perfectly for widget such as Latest News.
But for Enfold Latest Portfolio its use is not so clear.
In my Portfolio Categories I have a number of items for every language. So, I suppose, I have to set a Portfolio Entry to its category in a specific language. For example, I have Category A and its translation which is Category B: my Portfolio Entry in language A will be set as Category A and my Portfolio Entry in language B will be set as Category B.
Plus, I created a sidebar menu with Enfold Latest Portfolio which lets me choose only Categories in Language A. To choose Categories in Language B I need to switch my admin language to Language B. But when I do this, sidebar with Portfolio Entries in Language A disappears.
Hope I explained it clear.September 26, 2013 at 11:16 am #166546
Yes, actually WP will overwrite the widget settings if you try to save different settings/categories for different languages. This is a wordpress limitation because every widget gets an unique id and WPML does not duplicate the widget when you switch the language but the widget will keep the same id – thus you can also overwrite the settings. The only workaround I’m aware of is to add two instances of the widgets to the sidebar. First select one language and add a portfolio widget to the sidebar. Add ICL_LANGUAGE_CODE == ‘XX’ into the widget logic field and replace XX with the right language shortcut of the current selected language. Then configure the widget for the current selected language and hit the save button. Then switch to the other language and configure the second widget/instance for the other language. Don’t click the “blue” save button of the first widget or you’ll overwrite the settings of the first language again. I made a short video to demonstrate the setup: http://www.screenr.com/CyZH
PeterSeptember 26, 2013 at 11:24 am #166550September 26, 2013 at 12:07 pm #166565September 26, 2013 at 12:24 pm #166573
The topic ‘Enfold Latest Portfolio + WPML’ is closed to new replies.