• I want to be able to have users go from detailed event page to the next detailed event page, in calendar order, rather than having to go back to the full event calendar. I was able to add the code to single.php to add a link to the next event and the previous event. It works.

    However, since I added and edited my events in a non linear process, the next previous links don’t transition in strict calendar order, which is what I want. They skip around based on some as yet undetermined (by me) index.

    In a clone test site, I tried changing (one at time) the em_events database entries “event_id” and “post_id”. I did this carefully, making sure not to create any duplicates. In looking at the database I was able to determine that the events proceeded properly until there was a discontinuity in the event_id. I was able to adjust the event_id in the database so that the next event had the proper event_id sequence. However, when transitioning through the events after the change, the next link did not change at all. Even though its event_id was different. I repeated the test using post_id but that had no affect either.

    Any suggestions?

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry haven’t tried the process you did and it might cause conflict since EM is using custom post type and each event has an equivalent to wordpress post (post meta) tables.

    Thread Starter cosinebob

    (@cosinebob)

    The only database entries that I see that look like they affect the events are the _em_events section. All the events are listed there. Within that section I changed the event_id and the post_id. What else could be used to index the events from post to post? It cannot be the start date since that has been changed and the next event link does not go linearly from event date to event date so there must be some other index used.
    Any help appreciated.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    just to confirm, are you talking about the next/previous link when viewing the event on the frontend? if yes, I think this a wordpress default and it’s looking on table wp post; can i know if the post_id you used exists in wp post table?

    Thread Starter cosinebob

    (@cosinebob)

    In the _posts database I see an ID. It is the same ID as appears in the _em_events database also as post_ID. However, when I tried to change just that index, the post ID in the _posts database, it did not change the next sequence and it also made the events out of sequence when sorted by event date in the calendar view. Then I tried to change both the event_ID and the post_ID in the _em_events database and the _posts database because changing the one in the _em_events database did not change the one in the _posts database. Did not work either. Same affect. The sequence remains incorrect and now the dates are out of order in the calendar view. ???????????????

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Next Previous Event Links’ is closed to new replies.