cyberhobo / wp-geo-mashup-search

DEPRECATED This functionality is included in Geo Mashup 1.5! No need for a separate plugin any more, you'll get an error if you try to install both.
5 stars 1 forks source link

geo_mashup_category_legend not working on search results #6

Closed pulk99 closed 12 years ago

pulk99 commented 12 years ago

Hi,

I use <?php echo GeoMashup::category_legend() ?> in my sidebar, but when I'm on the search result page, the legend is gone. except when there are "No results found"

cyberhobo commented 12 years ago

The default results template uses the name 'search-results-map' for the map, so you could try:

<?php echo GeoMashup::category_legend( 'for_map=search-results-map' ); ?>

pulk99 commented 12 years ago

that did the trick, thank you!