Search for Venues returns the latest Venue instead of a list

Home Forums Calendar Products Events Calendar PRO Search for Venues returns the latest Venue instead of a list

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #44836
    Adrian
    Participant

    Hi,
    I have a search function on my site and when searching for all Venues, the result is always the latest post instead of a list of posts. The search is no different from the one used for searching Organizers, which works fine.
    Here are the codes:
    Search for tribe_venue (does not work properly – displays only last post entry as upcoming event):

    <form class="search-form" id="searchform2" method="get" action="/”>
    <input type="text" name="s" id="s2" placeholder="Alla scener" class="textbox" value="” />

    Search for tribe_organizer (works just fine – displays list of tribe_organizers):

    <form class="search-form" id="searchform3" method="get" action="/”>
    <input type="text" name="s" id="s3" placeholder="Alla liveklubbar" class="textbox" value="” />

    What could the problem be?

    #44850
    Barry
    Member

    Can you give me an example of one of your venues? If you could provide a URL for the venue page and also for the malfunctioning search form that would be great.

    #44859
    Adrian
    Participant

    This reply is private.

    #44865
    Barry
    Member

    Yeah so I believe what you are seeing is basically the upcoming events page … so in essence the search query is being reinterpreted as, “Search for all upcoming events in relation to venues matching these terms {SEARCH TERMS}”.

    I’m not entirely sure in honesty if that is by design or is a side effect of other processes, however due some fairly significant reorganization for the forthcoming 3.0 release I am not sure we will be making any further modifications here.

    Do you feel this is something you can workaround? If not I can try to get an interim solution for you (though, given the above points, I can’t guarantee it).

    #44874
    Adrian
    Participant

    I have a hard time trying to find a workaround so I would really appreciate any help or hint you cold give me.
    Thank you in advance!

    #44880
    Barry
    Member

    Sure. I’ve asked a dev to look into this, so I should have an answer for you in the next couple of days/early next week.

    #45620
    Barry
    Member

    Hi Adrian, thanks for your patience. Can you try adding this code to your theme’s functions.php file?

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Search for Venues returns the latest Venue instead of a list’ is closed to new replies.