Home › Forums › Calendar Products › Events Calendar PRO › Query Events that are in specific Category or Venue?
- This topic has 5 replies, 4 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
August 24, 2012 at 3:43 pm #24087MichaelParticipant
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!
August 25, 2012 at 12:07 am #24099Joyce GraceMemberHello 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!
August 27, 2012 at 10:12 pm #24164MichaelParticipantHi 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!
August 28, 2012 at 12:35 am #24168Joyce GraceMemberHello Michael, I will see if someone can help out.
August 29, 2012 at 10:58 am #24294JonahParticipantHi 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
July 7, 2015 at 6:25 am #977638Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Query Events that are in specific Category or Venue?’ is closed to new replies.