Speakers widget + WPML

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Wed Mar 12, 2014 10:04 am
Hi,

I just translated all my speakers' pages and now none of them appear in the speakers' widget on the front page.
Why is that?

I am looking forward to your comments.
User avatar
Junior Boarder

GK User
Wed Mar 12, 2014 1:02 pm
Hi,

You have to use also another spakers widget. Here's the description. :
https://wpml.org/2011/03/howto-display- ... -language/
You have to use widget logic plugin and put copy of the first widget into the same widget area.
User avatar
Moderator

GK User
Thu Mar 13, 2014 7:49 am
Hi Piotr,

Thanks, the speakers did reappear; however, after installing this plugin, i get the following error message in the widget admin area:
Warning: Illegal string offset 'widget_id' in /wp-content/themes/Fest/gavern/helpers/helpers.features.php on line 611
as well as the following one every where in the theme, effectively breaking...
Parse error: syntax error, unexpected '=' in /wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 1

How can this be fixed?
User avatar
Junior Boarder

GK User
Thu Mar 13, 2014 8:17 am
Did you add this string properly in the widget?
Code: Select all
 ICL_LANGUAGE_CODE == 'en'
Could you send me a PM with backend access to your website?
User avatar
Moderator

GK User
Thu Mar 13, 2014 8:39 am
In deed there was an additional space between the "=".
This fixed the front-end issue but not the one in the admin area.
Could you please provide me with an email to register the login credentials?
Thanks :-)
User avatar
Junior Boarder

GK User
Thu Mar 13, 2014 9:03 am
PM sent.
User avatar
Moderator

GK User
Thu Mar 13, 2014 9:08 am
The Account has been created.
N.B.: The Speakers are gone again after fixing the front-end bug.
User avatar
Junior Boarder

GK User
Fri Mar 14, 2014 8:57 am
Hi,

First, you should translate your speakers category into the second language, then translate all speakers and in the first widget use category e.g. speakers, and with the second widget use translated category e.g. speakers_china.
User avatar
Moderator

GK User
Fri Mar 14, 2014 10:39 am
In other words, I have to duplicate the custom post type speakers in order to create the new translated speakers category with the same characteristics as the original one?
User avatar
Junior Boarder

GK User
Fri Mar 14, 2014 2:21 pm
CityMoments wrote:In other words, I have to duplicate the custom post type speakers in order to create the new translated speakers category with the same characteristics as the original one?

Yes, exactly.
User avatar
Moderator

GK User
Mon Mar 17, 2014 5:47 am
So I copied the category-speakers.php file and created the category-speakers-cn.php file. How can I use it now? it doesn't appear in the post types or pages format.
User avatar
Junior Boarder

GK User
Mon Mar 17, 2014 7:50 am
Btw, I also realized that the "Speakers" category can not be selected in the English part anymore. It can however still be selected for Chinese posts. Is that due to the fact that some speakers have been translated with WPML?
User avatar
Junior Boarder

GK User
Mon Mar 17, 2014 9:33 am
Did you enable "Make 'Speakers' translatable" option from Multilangual content setup metabox? (when you are editin speakers page)
User avatar
Moderator

GK User
Wed Apr 09, 2014 12:41 pm
Hi, I have the same problem after installing the widget logic plugin, I get the same error message in the widget admin area:
Warning: Illegal string offset 'widget_id' in wp-content/themes/Fest/gavern/helpers/helpers.features.php on line 611

Please help
User avatar
Fresh Boarder

GK User
Thu Apr 10, 2014 7:47 am
Hi,

Did you add this string properly in widget logic area? This warning is visible also on the frontend?
User avatar
Moderator

GK User
Thu Apr 10, 2014 4:04 pm
I have no problem in the frontend.
The string is properly in the widget logic area.
The problem appears after installing the widget logic plugin, only in admin area.
I can only add once the string in the widget logic area of a widget. Every other time I place a widget I can't edit any option in the widget it displays the above message immediately.
User avatar
Fresh Boarder

GK User
Sat Apr 12, 2014 7:21 am
Hi again, did you find any solution, it has hight priority this project to me I have to translate all the widget and sidebars.
Thanks
User avatar
Fresh Boarder

GK User
Mon Apr 14, 2014 8:05 am
Please send me a PM with backend and FTP access, then I'll be able to check it exaclty.
User avatar
Moderator


cron