I’ve been using the Geotag plugin for quite a long time and have used it with great success in this time.
However, a recent project has thrown up a conundrum that I need some help on: displaying SEARCH results on a map.
I know that using
[gmap marker_query="numberposts=5&offset=1&category=1"]we can display multiple posts, plotted on a Google map wherever we like, and that the plugin uses the standard WP_Query functionality to select the posts displayed.
What I would like to do is somehow combine the standard WordPress search with the Geotag shortcode and query. I suppose the question really is, how do you create a variable – $searchres, for example – that can be dynamically added to the Geotag query string?
Does this sound possible? Any tips or suggestions much appreciated!
- The topic ‘Display search results on a map’ is closed to new replies.