X
396872

Create search function from URL type: /?search=WORD

i would like to search and filter all events with a search word from the URL

BY: Rasmus Heise - Oct 2,2025 AT 1:37PM - 14 hours ago
    • Rasmus Heise Oct 2,2025 AT 1:39PM - Posted 14 hours ago - #396874

      Hi,

      On my site I have a custom search page that passes a keyword in the URL like this:

      https://moenu.dk/search-site/?search=sauna

      I would like the [add_eventon] or [add_eventon_dv] shortcode to only show events that match the search keyword from the URL (in the title or description).

      • Does the search parameter work with [add_eventon] or [add_eventon_dv]?

      • If not, is there a PHP filter/hook I can use to add s=keyword to the event query when loading the shortcode?

      • Which hook should I use in my version of EventON to modify the event query arguments?

      Thanks in advance for clarifying which shortcode attributes or hooks I should use.

      Best regards,

      Rasmus

    • Artem Oct 3,2025 AT 4:02AM - Posted 10 minutes ago - #396922

      Hello,

      You can go to EventON > Search > enable “Include events in default wordpress search results”.

      Available Hooks can be found here:

      https://docs.myeventon.com/documentations/hooks-actions-filters/

      There is no way of searching in EventON shortcode from URLs. However please create a new ticket and select Feature Request as category so others can vote on your idea and get it moved into development faster.

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON