Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arrange position of map and listing using hook
add_filter('wpgmp_map_output','wpgmp_map_output',1,3 );
function wpgmp_map_output($output,$map_div,$listing_div,$map_id) {
// You can use $map_div and $listing_div to place them according to your need.
$output = "<div style='float:right'>".$map_div."</div>";
$output .= "<div style='float:left'>".$listing_div."</div>";
return $output;
}
@purivus-dev

This comment has been minimized.

Copy link

commented Aug 1, 2019

Hello,
There's an error in the code:
The number of accepted arguments has to be 4, not 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.