Order venues by number of events

Home Forums Calendar Products Events Calendar PRO Order venues by number of events

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #32958
    Joan
    Participant

    HI to everybody.

    First of all congrats for a plugin very well developed. I think is a great product. I’ve a little question for a customization. Is there the posibility to order venues by the number of events by wordpress query?

    I’ve this code on the query:

    query( array(
    ‘orderby’=> ‘title’,
    ‘order’ => ‘ASC’,
    ‘post_type’=> ‘tribe_venue’,
    ‘posts_per_page’ => 24,
    ‘paged’ => $paged));
    if ($upcoming->have_posts()) :
    while ($upcoming->have_posts()) :
    $upcoming->the_post();
    ?>

    Thanks in advance for your help and sorry for my very goos broken english

    #32978
    Jonah
    Participant

    Hi Joan,

    I don’t know how to do this myself and will need to ask a developer. Please stay tuned for a possible solution. No guarantees, but I’ve got someone else looking at this.

    Thanks,
    Jonah

    #32979
    Joan
    Participant

    Thanks a lot!! 😉

    #40828
    Joan
    Participant

    Is there any solution Jonah?

    #40853
    Jonah
    Participant

    Sorry for the delay Joan, I just sent the developer assigned to this a message and will get back to you as soon as I hear something.

    Thanks,
    Jonah

    #40856
    Joan
    Participant

    Thanks Jonah!!!

    #41606
    Jonah
    Participant

    Hi Joan,

    I have an update for you but I need to test some things out, particularly against your query code. Can you please post the code you are working with for your venue query to: http://snippi.com/

    Thanks,
    Jonah

    #42236
    Jonah
    Participant

    Hi Joan, it’s been a while since we’ve heard from you. Please post back here in the next couple days or I’m going to close this thread out.

    Thanks,
    Jonah

    #42238
    Joan
    Participant

    Sorry haven’t see your email. Here you are

    http://snippi.com/s/q20uaqx

    #42476
    Jonah
    Participant

    Hi Joan,

    Our developer put this code together that should allow you to filter your custom query. Here is the code: https://gist.github.com/PaulHughes01/5083640

    Does that help?

    – Jonah

    #42504
    Joan
    Participant

    Hi Jonah,

    If I put this code every venue has de same number of events. In this case everyone has 47 events par venue….

    #42517
    Jonah
    Participant

    Hi Joan,

    Can you please share your aolot_getVenueNextEvents() with us too?

    Thanks,
    Jonah

    #42673
    Joan
    Participant

    Of course! Here you are

    http://snippi.com/s/6ukqfoh

    #43076
    Joan
    Participant

    This reply is private.

    #43103
    Jonah
    Participant

    Hi Joan,

    Sorry for the delay on this. We’re still working on a solution for you. I should have an update for you in the next couple days.

    Thanks,
    Jonah

Viewing 15 posts - 1 through 15 (of 25 total)
  • The topic ‘Order venues by number of events’ is closed to new replies.