The WP-Strava plugin was closed on wordpress.org on 11 November 2024 for a security issue, and it gets no more updates. If it is still active on your site, your posts with Strava activities depend on a plugin nobody fixes any more, and on the Strava API, which can stop answering at any time. This guide moves each activity to WP GPX Maps: the track is saved on your site, with an interactive map, the elevation profile and the numbers of the activity.
Before you start
- Make a backup of the site (most hosts have a button for it).
- Install and activate WP GPX Maps from Plugins > Add New. Keep WP-Strava active only while you move the posts, then deactivate it.
- You need the GPX file of every activity. Strava gives it only to the athlete who recorded it, so log in with the account the activities belong to.
1. Find the posts with Strava maps
In Posts > All Posts search, one at a time, for [activity, [ride, [route and wp:wp-strava (the last one finds the Strava blocks of the block editor). Do the same in Pages. Write down the Strava number of each map: it is the id in the shortcode, or the number at the end of the Strava address in the block, for example 1793155844 in strava.com/activities/1793155844.
2. Download the GPX files from Strava
- Activity: open
strava.com/activities/NUMBER, click the three dots (…) and choose Export GPX. Export Original gives the file of your device (often a .fit file): WP GPX Maps reads that too, with heart rate, cadence and temperature. - Route: open
strava.com/routes/NUMBERand choose Export GPX. - Many activities: in Strava go to Settings > My Account > Download or Delete Your Account and request your archive. The e-mail you get has a zip with every activity file, named by the activity number.
The Strava menus change from time to time, so the names can be slightly different on your screen. The guide from Strava, Garmin or Komoot to your WordPress site shows the export step by step.
3. Replace the Strava map
Open the post, delete the Strava shortcode or block and add a GPX Map block. In the block, click Media Library and upload the file you downloaded. With the classic editor, upload the file in Settings > WP GPX Maps > Tracks and use the shortcode instead. A typical WP-Strava shortcode looks like this:
[activity id=1793155844 som=metric markers=true]
The same map with WP GPX Maps:
[sgpx gpx="/wp-content/uploads/gpx/morning-ride.gpx" uom=2 startend=true summary=true summarytotlen=true summaryeleup=true summarytotaltime=true summaryavgspeed=true]
| WP-Strava | WP GPX Maps |
|---|---|
[activity id=…], [ride id=…], [route id=…], Strava blocks | A GPX Map block or [sgpx gpx="…"] with the exported file |
som=metric / som=english | uom=2 (meters and kilometers) or uom=1 (feet and miles), or the default in Settings > WP GPX Maps |
markers=true | startend=true: start and finish flags |
map_width, map_height | width, mheight, with the unit: 100%, 450px. No 640 px limit: the map is interactive, not a Google image |
| Table with distance, time, climbing, speed | summary=true plus the numbers you want (summarytotlen, summaryeleup, summarytotaltime, summarymovingtime, summaryavgspeed, summaryavghr…), all in the block sidebar too |
image_only=true | summary=false and showele=false: only the map |
| (none) | Elevation, speed and heart rate charts linked to the map, track colored by grade or speed, 3D view |
What has no replacement
The list of recent activities ([activities], Strava Activities List widget) and the map of the latest activity ([latest_map]) read Strava every time the page opens. WP GPX Maps shows the files saved on your site and does not connect to Strava: add the new activities as posts, or remove these lists. Automatic sync with Strava is on the roadmap of WP GPX Maps Pro. Segments (Strava Segment block) have no equivalent either.
4. Check and clean up
Open each post you changed and check the map. Then search again for [activity, [ride, [route and wp:wp-strava: when nothing is left, deactivate and delete WP-Strava. In Strava, under Settings > My Apps, you can also revoke the access you gave to your site.
A track that starts at your front door shows everyone where you live. Strava can hide the start on its own site, but the exported file still contains it: if needed, cut the first and last few hundred meters with a free GPX editor such as gpx.studio before uploading.
This is what a moved activity looks like:
Map of the route “WP-Strava was closed: switching to WP GPX Maps”: 6,49 km, 1.157 m of climbing and 14 m of descent, elevation between 606 m and 1.753 m, time 01:53:52. It starts at 45.86700, 11.83435 and ends at 45.87277, 11.80264 (latitude, longitude). Estimated time for hiking: 3 h 45 min, without stops.
Max elevation: 1754 m
Total climbing: 1157 m
Estimated time, hiking: 3 h 45 min (CAI hiking time, without stops)
New to WP GPX Maps? Start from How to add a GPX track to WordPress. Worried about cookie banners and third-party embeds? See a GDPR-friendly alternative to Komoot and Strava embeds. Stuck with a map? Ask in the support forum with the old shortcode and the address of the page.
Lascia un commento