Search by Event Categories and WPML
-
When you are in English site and search by category Music (id 7), you get no search results for events on Nov 28, 2017. Example link: https://www.siempreeventos.com/events/?action=search_events&category=19&scope%5B0%5D=2017-11-28&scope%5B1%5D=2017-11-28&town=&location_id=&em_search=
When you are in Spanish and search by Musica (translated taxonomy of Music, id 132) you get the expected result for events on Nov 28, 2017. Example link: https://www.siempreeventos.com/es/events/?action=search_events&category=137&scope%5B0%5D=2017-11-28&scope%5B1%5D=2017-11-28&town=&location_id=&em_search=
The issue we are having is that when you are in English and select for example category Music, it only displays events that were created in English and have category id 7. But we got no results of events that were created in Spanish and have the translated category of Music with id 132. All events with category 132 don’t display.
When we customize events-list.php and add $args[‘category’] = array($cat_1, $cat_2); where $cat_1 and $cat_2 are the translated taxonomy ids (7, 132), we still get the results described above: only results with category 132 when the site is in Spanish and only results with category 7 when the site is in English.
What we want is to display all events with either category 7 or 132, regardless of the language the event was created in, and regardless of the language the site is on.
Any help guidance of how to work around this would be much appreciated.
The page I need help with: [log in to see the link]
- The topic ‘Search by Event Categories and WPML’ is closed to new replies.