Forums › Forums › Search & Filter Pro › Duplicates of Events Manager events with translation pop up randomly in results
Tagged: duplicates, Events Manager, multilingual
- This topic has 41 replies, 3 voices, and was last updated 5 years, 5 months ago by Ross.
-
Anonymous(Private) March 4, 2019 at 7:56 am #203797
Hi Trevor,
This is a follow-up to the problems I had been having with translated events popping up in the default language (German) search results. I have since been in contact with Events Manager support and have done some further testing. The problem arises when an event in the default language has been created by duplication (in my current project, most all of them have) and then is translated. If an event has been created by the “add new” button, then the translation of that event does not show up randomly in the Search and Filter Pro results. But if I duplicate that new event (with its translation), then the duplicated event shows up three times in the S&F results: once in its correct chronological order, and then two times at random locations in the results, once in German and once in English.
This problem with duplication does not occur in the Events Manager search form or in the default WordPress search, so they suggested I ask you about this.
Do you have any ideas? Avoiding duplication of events is not an option, as it would entail more work.
Thanks!
Kind regards,
Jean
Trevor(Private) March 4, 2019 at 9:45 am #203802I need to get a little bit more understanding of the two methods.
You duplicate the event. Note that, by doing this, WordPress will make the new event and run the save_post() function, which will trigger our plugin to add it to the cache. At this point is the event open in the editor, or do you have to open it to then translate it? When you translate it, does it gain a new Post ID compared to the Post ID of the duplicate?
Can you try this also. Make an event in German (the default language). Then deactivate our plugin. Then duplicate it. Then, just before you duplicate it, reactivate our plugin. Does the same effect still happen?
Anonymous(Private) March 4, 2019 at 11:25 am #203810Hi Trevor,
I can confirm that the duplicates and the translations of the events (whether new or duplicate) all have a unique post ID. Nearly all the translations, except for my tests, have taken place at a date later than when the German events were created. They were created with the event closed by clicking the plus symbol.
I tried your suggestion. I created a new event — this shows up in the correct position on the filter. Then I translated it (the problems with duplication always occur when translation comes into play) with the plugin still active, this also shows up where it is supposed to. Then I deactivated the plugin and made a duplicate of my previous event. Upon reactivating the plugin, the duplicated German event does not show up in the correct chronological position and the English translation of that event pops up in the German results, although this English event is still under drafts in Events Manager as it has not been published yet.
Anonymous(Private) March 4, 2019 at 1:04 pm #203827No, you have to delete the translation separately. And you have to permanently delete both the original and the translation to remove them from appearing randomly in the search results. (I do have the search filter set to show only “published” events.)
I have been doing more testing and discovered that these unwanted “copies” appear in the filtered results even for new events without translation — I never noticed that before. Not sure if this is a new development or whether I overlooked it before (we have over 200 events).
So I’m guessing that everytime the background processes save the event during creation (temporarily as a draft), that the filter is somehow taking them up into its cache?
-
AuthorPosts