did you try to check the line which includes is_numeric() ?
angelo.
Yes, I tried to change it in both filters on is_string()
if( !empty($array['style']) && is_string($array['style']) ){
or just delete this part,
if( !empty($array['style']) ){
but it still don’t understand what to display.
I look at add_filter(’em_event_save’,’my_em_styles_event_save’,1,2);
there $ids_to_add[] = "({$EM_Event->id}, 'event-style', '$style_id')";
and in SQL db in wp_em_meta i see stored only style id, but no style name. May be because of it?
sorry but I’m afraid that we cannot help you out with regards to 100% coding as per the support policy – http://eventsmanagerpro.com/support-policy/
also, this might not work because you are using filter em_event_save and then used the custom search attribute in locations_list shortcode.
I understand, i don’t ask for full code, only which parameter is responsible for this.
And sorry for little misleading. I show example from your site, which apply to any shortcode.
[events_list style=5] work fine, [events_list style=”style-name”] don’t work, thats why i look at em_event_save.
the tutorial in the page is a starting code and working as is however the devs are already working on this to make it more clearer and better and at the moment you can try to look into em_event_save filter and maybe it’s saving the style id and not the name.