Home › Forums › Calendar Products › Events Calendar PRO › Add Venue Category
- This topic has 7 replies, 2 voices, and was last updated 11 years, 2 months ago by Jonah.
-
AuthorPosts
-
February 15, 2013 at 1:55 am #32714SteveParticipant
I found this thread: https://theeventscalendar.com/support/forums/topic/enable-event-categories-for-venues-too/
but don’t have a clue where or what to do with that function in order to form event venue categories.
many thanksFebruary 15, 2013 at 7:47 am #32734JonahParticipantHi Steve,
You would put that code in your themes functions.php file.
Does that help?
– Jonah
February 18, 2013 at 1:57 am #32857SteveParticipantcheers thanks
February 18, 2013 at 2:12 am #32859SteveParticipantI was also wondering whether it is possible to produce a list of venues, a bit like the upcoming events list?
thanksFebruary 18, 2013 at 7:24 am #32883JonahParticipantHi Steve,
You can query venue’s with WP_Query like so: https://gist.github.com/jo-snips/4978177
Does that help?
– Jonah
February 19, 2013 at 3:44 am #32953SteveParticipantnot really! where do I put the file custom-venue-query.php?
thanksFebruary 19, 2013 at 3:50 am #32954SteveParticipantYou might have to dumb it down a little! I don’t really know what a Wp_query is too!
cheersFebruary 19, 2013 at 8:41 am #32966JonahParticipantHi Steve,
You would need to put the code in custom-venue-query.php or include that file wherever you want the list to appear. For example, if you wanted it to appear in the sidebar, you would need to add it to sidebar.php. You’ll need to know a little PHP though or at least be a little comfortable changing things. Every theme is different too so adding the code to your theme’s sidebar.php may have different affects. There are many different methods of adding code and content in WordPress and unfortunately we cannot assist in guiding you in all of them. A little trial and error may be necessary to try adding the code in different places and see what happens. Good luck!
– Jonah
-
AuthorPosts
- The topic ‘Add Venue Category’ is closed to new replies.