Hi all
I just wanted to output a list in list.php of my events. Everything works fine except the venue, which doesn’t show up. What am I doing wrong? I copied the code snippets from the original list.php File.
See code: https://gist.github.com/3609071
I think the problem here is that you are trying to modify the query using query_posts() … that can cause problems here. If you comment out your query_posts() call you should find that tribe_get_venue() works as expected.
Here’s a snippet that might help: http://pastebin.com/91cpt8mh (courtesy of Jonah). This shows a way of filtering the events query without using query_posts() … of course you would need to make some minor changes such as altering the value or values within the terms array.
That’s a shame … the only other means of excluding a category that comes to mind is testing to see if it an event is in a category and skipping it if you have a match, something like this: http://pastebin.com/T6wchVVS … the downside is that you would have less control over the total number of results displaying on the page.
Might work for you though. Sorry I can’t do more to help!