Allows authors to set their location, and then display it on a Google Map.
Adds a template tag:
<?php al_list_authors(); ?>
with the following available arguments:
- include_protected_posts=1 : Include protected posts when calculating the latest post.
- echo=1 : Whether to write the map and listing into the page, or return it (so you can assign the HTML to a variable).
The HTML output is fairly heavily classed, for ease of CSS styling, but if you need to adapt it you can. Create a directory in your
theme called "view", and a directory within that one called "author-listings". Then copy the template files from
view/author-location/
in the plugin directory into your theme directory and amend as you need. If these files exist in these directories in your theme they will override the ones in the plugin directory. This is good because it means that when you update the plugin you can simply overwrite the old plugin directory as you haven't changed any files in it. All hail
John Godley for the code which allows this magic to happen.
Plugin initially produced on behalf of
Puffbox.
Is this plugin lacking a feature you want? I'm happy to accept offers of feature sponsorship:
contact me and we can discuss your ideas.
Any issues:
contact me.
The plugin is simple to install:
- Download
author-locations.zip
- Unzip
- Upload
author-locations
directory to your /wp-content/plugins
directory
- Go to the plugin management page and enable the plugin
- Give yourself a pat on the back