List events and Sort Priority

Home Forums Calendar Products Events Calendar PRO List events and Sort Priority

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #52439
    insightokc
    Participant

    Is it possible to sort a query by prioritizing the type of event? For example, what I want is to show all events on my side events list that are for today, but I want them to be sorted like this:

    Multiday
    Recurring
    Single Day Event

    So if there are three events today, a multiday event with display first, followed by a recurring and then followed by a single day event.

    Am I allowed to post code here? https://gist.github.com/adrianrodriguez/5884977

    Also, this is a side question. I just got the Pro License today, does activating the license key on my local machine use up one of the 3 sites I am allowed to use it on?

    #52453
    Jonah
    Participant

    Hi insightokc,

    This would be fairly complicated to setup and my recommendation would be to use WP_Query so you can more control the ordering of events. You can see an example of usage for that here: https://gist.github.com/jo-snips/5112025 – My suggestion would be to create a custom field select box or radio option for the 3 choices and then check for these in your query. My custom field plugin of choice is: http://www.advancedcustomfields.com/

    I hope that gives you a bit of an idea of what you’ll need to do but ultimately you’re going to have to work on the solution yourself. Let me know if I can provide any other guidance though.

    Activating your license anywhere uses up one of the sites but you can easily deactivate for any site by visiting the Account Central > Licenses page above.

    I hope that helps but let me know if you need anything else.

    – Jonah

    #52466
    insightokc
    Participant

    Jonah,

    Sadface. 🙁 I was hoping there would be a built in feature since I mostly hack php and don’t know it by hand. I am however already using Advanced custom fields and am a tiny bit familiar with it, but I will see what I can do. 🙁 Thanks.

    #52474
    Jonah
    Participant

    Sounds good insightokc, let me know if you have any other questions.

    – Jonah

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘List events and Sort Priority’ is closed to new replies.