Update 1.5.2

Written by Eyal Fitoussi on August 23, 2012

the new update includes few bugs and memory issues fix, new shortcode and new widget.

Now you can display Member's location anywhere within a template page using the shortcode [wppl_member_location] or in the sidebar using the new widget.
You can use the code <?php echo do_shortcode('[wppl_member_location]'); ?> in the "member-header.php" file for example to display the user's location next to its avatar. Click here to see an example.

the attributes of the short code:

  • map_width=" " - width of the map in px. ( default: 250px)
  • map_height=" " - height of the map in px. ( default: 250px)
  • map_type= " " - ROADMAP, SATELLITE, HYBRID or TERRAIN. ( default: ROADMAP)
  • address=" " - 1 to display the address above the map. ( default: 0)
  • directions=" " - 1 to display "get directions" link. ( default: 1)
  • no_location=" " - 1 to display "User has not added a location yet" if no location added. ( default: 0)

full shortcode example: <?php echo do_shortcode('[wppl_member_location map_width="200" map_height="200" map_type="ROADMAP" directions="1" address="1"]'); ?>