Re-order output using tribe_get_organisers

Home Forums Calendar Products Events Calendar PRO Re-order output using tribe_get_organisers

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1108124
    Lucy
    Participant

    Hello,

    I bought your plugin and love it!

    I am using the get_tribe_organisers function, to display the name and photo of each of my organisers on my website home page. I want to re-order these by descending – but i can only see 1 argument – get posts per page – that can be passed to the function. Is there a way to change the order the organiser info is displayed?

    Many thanks in advance!

    Lucy

    #1108140
    Nico
    Member

    Hi Lucy,

    Thanks for reaching out to us! Interesting question here 🙂

    The tribe_get_organizers is in fact very basic and doesn’t allow much customization. I guess there are to options here:

    • Write your own function to get organizers: you could copy the code of tribe_get_organizers and add the needed parameters for order to the query.
    • Use arrays sorting functions to re-order the output of tribe_get_organizers: http://php.net/manual/en/array.sorting.php

    There’s no better one, it just depends on what works best for your site.

    Please let me know if this answers your question,
    Best,
    Nico

    #1114308
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Re-order output using tribe_get_organisers’ is closed to new replies.