The Runkeeper plugin for WordPress lets you embed a preview of your activities in to posts using a custom field or shortcode.
Take a look at an Example of the plugin in action.
The new version offers two options for adding maps in to posts:
- Create a custom field called “runkeeper” and paste in the “Share” link from your activity on Runkeeper
- Use the shortcode [[runkeeper url="example"]] at any point in your post where you would like the map to appear, replacing “example” with the “Share” link from Runkeeper.
The new version also allows you to change the width, height and offset of the preview using the Settings page. Go to Settings > Runkeeper in the admin menu. The default values are: Width: 600px, Height: 400px, X: 300px, Y: 300px
Custom Fields in Posts
If you’ve not used custom fields in your posts before, it’s really simple.
When you add a new post, look down the page to the section called “Custom Fields”. Click “Enter New”, then add the “Name” “runkeeper” and the value is the address of the activity you want to embed. If you don’t have the Custom Fields section on the page, you may need to select it from the Screen Options menu in the top right.
Take a look at the example below.
Shortcodes are tags enclosed in square brackets which can be entered anywhere in the post. When the post is displayed on the front end, the shortcode will be replaced with dynamic content, in this case a Runkeeper map.
An example shortcode for the Runkeeper plugin is:
If you like this plugin, why not donate to help keep this project going.