Ability to filter calendar list based on current filter bar selections?

Home Forums Welcome! Pre-Sales Questions Ability to filter calendar list based on current filter bar selections?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1149907
    Robert Lee
    Participant

    Hi there,

    I was wondering if you purchase the calendar PRO and the filter bar options, can you display a list of events on the event calendar page based on which filters are currently set in the filter bar? (i.e. if the filter bar has Event Category set to “X” and is only showing X type of events in the grid view, can the list below the calendar be restricted to only show X events (vs. a list of ALL types of events)?

    Thanks in advance for your help with this process!

    #1150011
    Josh
    Participant

    Hey Robert,

    Thanks for reaching out to us!

    I’m not sure I’m following your request here. Are you referring to one of our Widget views that has the calendar grid and a list below? Do you have a link to the page that you’d want to be using the Filter Bar plugin so I can see if there is anything there that might give me a little more clarity on what you’re looking for here.

    Thanks!

    #1150034
    Robert Lee
    Participant

    Hi Josh!

    Thanks for the prompt reply.

    Here is a link: https://crystalashram.com/events/category/outreach/

    When a user clicks on a button and is taken to that page, the calendar is filtered (by URL) to only show the OUTREACH events on the calendar. I was hoping to include a list view of the same events below the calendar. However, when I include a list below the calendar, it shows ALL events.

    I understand you can customize the shortcode for the list as well so that it shows events with “category=’outreach'” However, we have a few links on our site that links to the events calendar with DIFFERENT filters. So, I’m trying to have the list below the calendar set to something like, “list category=current selected category”

    So that if someone clicks on our link to IN-HOUSE Events, the calendar displays events with the category of “in-house” AND the list below the calendar displays the “in-house” events only.

    As you can see on the link I provided, I put in a piece of text that says “Here is a list of ALL our events” because that is currently what is showing.

    I hope that is more clear?

    Thanks again!!

    #1150483
    Josh
    Participant

    Hey Robert,

    Thanks for following up here!

    I understand what you’re looking for now. Depending on how you’re building that list, you can pass the current category into the query that generates the list below. You can accomplish this by using the “get_queried_object()” function in WordPress.

    For example, to get the current event category slug there you would use:

    
    $queried_object = get_queried_object();
    $queried_object->slug;
    

    You could then pass that into the arguments for your query or shortcode that you’re using to build that list.

    Let me know if this helps.

    Thanks!

    #1150509
    Robert Lee
    Participant

    Hi Josh, thanks again for your response!

    While I can understand what you mean and how that would work, I don’t exactly know the steps to complete what you’re requesting me to try…

    Is this something I have to do with the WP files or views? I’m really only familiar with the WP-Admin dashboard panel at this point. Is this something I can accomplish from there?

    Thanks,
    Leela

    #1150793
    Josh
    Participant

    Hey Leela,

    Thanks for following up here.

    I am limited in the amount of support that I can provide for a customization such as this, I can help to get you pointed in the right direction.

    To start here, how do you currently have the template set up to pull the list below the main calendar there?

    Thanks!

    #1159366
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Ability to filter calendar list based on current filter bar selections?’ is closed to new replies.