Query Events that are in specific Category or Venue?

Home Forums Calendar Products Events Calendar PRO Query Events that are in specific Category or Venue?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24087
    Michael
    Participant

    Hi,
    I know how to use a basic query to get the most recent events, but I need to modify it in 2 separate ways:
    – I need to be able to show events that are in a specific event category
    – and I need to show events that in a specific venue.

    if you could give me some PHP code to use in my theme that would be great as this is urgent.

    Thank you!

    #24099
    Joyce Grace
    Member

    Hello Michael,

    Since this is a customization, we can’t really do much to help out, but I can lead you to our technical documentation page which will probably have what you’re looking for: https://theeventscalendar.com/support/documentation

    Also, at our Tutorials page, we have an entire section on Queries, Categories, Tags & Event Loops. I know you said you already know how to do this, but perhaps one of these will shed light on what you’re trying to do (for example “Category-based filters on calendar view” or the general “Queries and pagination” tutorial):

    https://theeventscalendar.com/the-events-calendar-for-wordpress-tutorials/

    Let me know if this helps!

    #24164
    Michael
    Participant

    Hi Joyce,
    I’ve already gone through the docs and tutorials. Maybe I’m missing it, but I’m not seeing anything that helps me.
    I know it has something to do with querying the event category/venue taxonomies, but I just need to be given some help to get it working.

    I don’t need anyone to customize my site, but if someone on the support staff here would be kind enough to just post some demo code that will do what I need it would be greatly appreciated instead of just telling me to go read your documentation.

    Thanks!

    #24168
    Joyce Grace
    Member

    Hello Michael, I will see if someone can help out.

    #24294
    Jonah
    Participant

    Hi Michael,

    Take a look at this snippet, it should be what you need, make sure to change the category slug and the venue ID: https://gist.github.com/3514001

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

    – Jonah

    #977638
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Query Events that are in specific Category or Venue?’ is closed to new replies.