Hi,
The easiest way is to drop this shortcode into a page or post:
[event_search_form]
If you want to use the shortcode from within a template you can use this:
do_shortcode('[event_search_form]');
thanks caimin! I miss to see this shortcode!! 🙂 I’ll try it and I’ll make you know if it works
I don’t know how it works…. when i insert a key in the search field, it gives me this message:
“No posts.
Sorry about this, I couldn’t seem to find what you were looking for.”
Why if i insert the name of an event it doesn’t retrieve it?
How can i choose what template to use for display the result?
Which page are you using the shortcode on? Can you post a link? Thanks.
I used this code <?php echo do_shortcode('[event_search_form]'); ?> inside the sidebar… I’m in local
how about using text widget in your sidebar and then used shortcode [event_search_form]
to use shortcode in text widget – install plugin ‘Shortcodes in Sidebar Widgets’
It seems to works, but i have 2 strange issues:
1) When I looking for a keyword, it retrieves all events-post;
2) I deleted all events and wordpress tell me that there is one published under a certain category, but I can’t see it in the admin panel under Events… This is not the first time that happens.
What can i do?
not sure what causes this but maybe you can try to disable all other plugins and/or if possible try to temporarily revert to default theme just to rule-out any theme or other plugin issue.
could it be you’re looking at future events, and the one in question is in the past?
or does it not show in the admin and only in the front-end? if so:
the extra event is a ‘ghost’ event, we’re not entirely sure why it happens as it’s such a rare occurrence that we can never reproduce (if you can, please let us know and we’ll work with you directly to fix it)
the fix is quite easy though, there’s two ways:
1 – add a public edit event page as per – – on the front-end these ghost events appear an you should be able to delete it.
2 – visit your databasae and see the table wp_em_events, if you deleted all your events there should only be one record.