List All Organisers Alphabetically

Home Forums Calendar Products Events Calendar PRO List All Organisers Alphabetically

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1041393
    kcswebs
    Participant

    Hi everyone,

    Just purchased the plugin, love it, it’s awesome!

    I have a couple of issues, I’m hoping can be resolved.

    I have the shortcode plugin installed to list all organisers, but they need to be listed alphabetically. I’ve looked on the forums, but there is no definitive answer. Whats the best way to do this?

    Also, when viewing an individual Organiser, the breadcrumb at the top of the page is a link to all courses page, how can I get it just to go back to the list of all Organisers? I’ve tried the simple approach of echoGo Back“; but that doesnt seem to work.

    Thanks in advance.

    #1041413
    kcswebs
    Participant

    As a follow up, I’ve resolved my issue with the breadcrumb link going back to the following page.

    #1041698
    George
    Participant

    Hey @Kcswebs,

    I’m sorry to hear about these issues – however, can you clarify what plugin you’re referring to when you say “the shortcode plugin”?

    We do not make any sort of plugin named along those lines, and unfortunately cannot provide support for unofficial plugins, so I just want to make sure I know which specific plugin you’re referring to here. (And I’ll help as much as possible regardless).

    Cheers!
    George

    #1041708
    kcswebs
    Participant

    Hi George,

    Sorry, my bad!

    I’m using the Events Calendar Pro plugin, and to list all organisers on one page, I’m directed to list them all using the plugin featured on your link https://theeventscalendar.com/knowledgebase/listing-venues-and-organizers/

    It all works swimmingly, but I just need the organisers to be alphabetical.

    Thanks!

    #1041734
    George
    Participant

    No problem!

    Thank you for clarifying – tweaking this will unfortunately take some code customization, but should totally be possible. Try adding this code somewhere in your theme’s functions.php file:


    add_filter( 'TEC_VenueOrganizer_List.args', 'tribe_support_1041393' );

    function tribe_support_1041393( $args ) {
    $args['orderby'] = 'title';
    $args['order'] = 'ASC';
    return $args;
    }


    You can also just edit the code within the plugin directly, if you’re comfortable with that. You’d take the same arguments in the code above and just add them in the query() function within the plugin’s code, around line 47 and such, here’s an image showing this in practice:

    Cheers!
    George

    #1041740
    kcswebs
    Participant

    Thats sorted it completely!

    Thanks very much George.

    Good Work Sir 😉

    #1041793
    George
    Participant

    Nice! Best of luck with your project 🙂

    — George

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘List All Organisers Alphabetically’ is closed to new replies.