tribe_get_venue

Home Forums Calendar Products Events Calendar PRO tribe_get_venue

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #24469
    Pascal
    Participant

    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

    #24472
    Barry
    Member

    Hi Pascal – thanks for getting in touch 🙂

    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.

    #24473
    Barry
    Member

    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.

    #24503
    Pascal
    Participant

    ok thanks a lot. query_posts() was actually the problem.

    #24504
    Pascal
    Participant

    Thanks also for the snippet. But looks bit too complicated for my knowledge..

    #24513
    Barry
    Member

    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!

    #24577
    Pascal
    Participant

    tnx

    #977679
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘tribe_get_venue’ is closed to new replies.