Use a widget or the shortcode [whereabouts-swarm] to display your current location anywhere on your website.
Please note: The location will only be displayed if a location has been set.
There is no extra styling. You can however do it yourself, in your theme. This is what the HTML looks like, depending on what you decide to display (in the settings):
<div class="whereabouts-swarm-location"> <img class="whereabouts-swarm-icon" src="..." alt="" /> <span class="whereabouts-swarm-venue">Venue Name</span> <span class="whereabouts-swarm-city">City Name</span> <span class="whereabouts-swarm-country">Country Name</span> <span class="whereabouts-swarm-timezone">UTC Time Zone</span> </div>
- PHP 5.3
- WordPress 4.3
whereabouts-swarmfolder to your
Activate the “Whereabouts: Swarm” plugin in the WordPress administration interface.
Go to “Settings” -> “Whereabouts: Swarm” and authenticate with your Swarm/Foursquare account.
Add the widget, like you do with every other widget. 🙂
Use the following shortcode to display your location:
Contributors & Developers
“Whereabouts: Swarm” is open source software. The following people have contributed to this plugin.Contributors
- Change plugin home
- Now using the HTTP API for requests, duh!
file_get_contentsis not available
- Add more meaningful error messages
- Fix PHP 7 issues
- Added a widget
- Hello World