Can't get show events for specific venue (taxonomy-event-venue)

WordPress Event Management, Calendars & Registration Forums General Question Can't get show events for specific venue (taxonomy-event-venue)

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 10 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10614

    Hi,

    I have a page taxonomy-event-venue.php where I want to show a list of current and pass events. I had coded it and the current/past events are working but I cannot get event-venue to work in eo_get_events although I use eo_get_venue_slug(). Instead the page shows all events and I actually can’t find why.

    Here is my code: Pastebin

    Thanks for every help,

    Mark

    Marek Zelezny
    #10615

    Forgot to add, here is how it looks like right now: http://udalosti.4elementsgroup.cz/u/misto/divadlo-f-x-saldy/

    On the right should be just MONTY PYTHON and V LIBERCI CHYSTAJÍ MONTY PYTHONY.

    Marek Zelezny
    #10633

    Hi Marek,

    I can’t see anything wrong with the code, and after testing the code I wasn’t able to reproduce the bug either. Can you confirm that $current_event does indeed contain the venue you expect? This will at least determine whether the bug is with the set-up of the query, or the query itself. (You could try using tax_query (see codex), but what you have should work)

    Stephen Harris
    #10655

    As I mentioned in my e-mail, the problem was that eo_get_venue_slug() was being used with the venue ID (not the event ID).

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.