• Resolved chathuranga

    (@chathuranga)


    Hi,

    One of my clients requirement is; he needs to show all future events in the events search form as ascending or descending order of the number of booked spaces( or number of attendees).

    For example,
    When user come to the events search page, by default user can see all future events. But events; displaying order depends on the number of booked spaces of the event. The highest booked event should be displayed as the first event and least booked event should be displayed as the last event of the default future events list.

    When user do a search with some search criteria (like event title,location, etc), the searched result should be displayed according to the same rule. That is the highest booked event should be displayed as the first event of the searched results.

    I went through your tutorial, Placeholders, Conditional Placeholders etc. But, I couldn’t find a solution for my scenario.

    Let me know, is this a possible thing to do by using your events manager plugin ?

    Thanks,
    Chathuranga.

    http://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Unfortunately this isn’t possible without doing some custom coding.

    You’ll probalby need to tinker with the SQL we use beacuse you’d have to create a new selector that quantifies the number of bookings for that event.

    I’m not 100% sure it’s even possible that way, the other alternative is to add a field somewhere that keeps a tally of booking numbers and order by that, which again, is a somewhat complex customizations (although doesn’t require hacking of rhe plugin, filters/actions can be used)

Viewing 1 replies (of 1 total)

The topic ‘Custom event search criteria’ is closed to new replies.