Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Created November 22, 2016 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpflippercode/cc52e76806cee8b8289a550e0b74734c to your computer and use it in GitHub Desktop.
Save wpflippercode/cc52e76806cee8b8289a550e0b74734c to your computer and use it in GitHub Desktop.
Modify Maps & Listing Position using wpgmp_map_output hook
add_filter("wpgmp_map_output","wpgmp_map_output",2,4);
function wpgmp_map_output($output,$map_div,$listing_div,$map_id)
{
$output="
<table width='100%'><tr><td width='50%' valign='top' style='vertical-align:top;'>".$listing_div."</td><td width='50%' valign='top' style='vertical-align:top;'>".$map_div."</td></tr></table>";
return $ouput;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment