Join our new community forum for support & discussion

Join Now

Home Support Themes JobHive Shortcode for Geo map of ALL listings?

Shortcode for Geo map of ALL listings?

  • Author
  • johnhaldi

    Is there a way to use the GeoLocation plugin such that I can place a shortcode on my home page which shows a map with ALL job listings, and let users drill into the map to find a job in the area they’re interested in? Currently in JobHive, it shows the map with pins on the search results area, but only for the jobs currently displayed by the filter (i.e. the five jobs listed on the screen). Paging updates the map to show the jobs listed on the next page, etc.

    But what I really want is to display a map of the country with ALL jobs displayed on the map.

    Is that possible?

    ihor developer

    Sorry, there’s no such block type at the moment, it would cause performance issues with 100+ map markers. The embedded map on the listings page displays only the current page search results so this issue is prevented.


    there might be a way to move it with snippet.
    this is how i did it at least. i have a slider with 30-35 listings. works fine. just adjust the template part. hope it helps

    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    				'blocks' => [
    					'listing_map' => [
    						'type' => 'content',
    					'page_content' => [
    						'blocks' => [
    							'listing_map3' => [
    								'type'   => 'listing_map',
    								'_order' => 1555,
    ihor developer

    Thanks for sharing!

Viewing 4 posts - 1 through 4 (of 4 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.