{"id":3560,"date":"2017-06-08T15:36:22","date_gmt":"2017-06-08T14:36:22","guid":{"rendered":"https:\/\/www.main-vision.com\/richard\/blog\/?p=3560"},"modified":"2017-06-08T15:38:37","modified_gmt":"2017-06-08T14:38:37","slug":"wordpress-and-strava","status":"publish","type":"post","link":"https:\/\/www.main-vision.com\/richard\/blog\/wordpress-and-strava\/","title":{"rendered":"WordPress and Strava &#8211; Using WP Strava on this blog"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><p>I installed <a href=\"https:\/\/wordpress.org\/plugins\/wp-strava\/\">WP Strava<\/a> on this blog to share my Strava cycling and running activity. At the time of this blog post you can see my most recent bike rides in the left column as well as the most recent map. With a minimum of code you can also include your bike rides within a post like you see below. You write activity id=number of activity and the ride will be integrated within your blog posts without the need for embed codes and an iframe.<\/p>\n[activity id=1026494012]\n<p>This is useful for activity bloggers such as myself. The code is simple and easy to remember, as soon as I find the right keyboard keys to avoid the need to copy and paste. Shortcodes are to add information to blog posts and the widgets are for the side bar.<\/p>\n<p>SHORTCODES<\/p>\n<p>activity id=NUMBER \u2013 add to any page or post. Also takes the following<br \/>\noptional parameters:<\/p>\n<ul>\n<li>som \u2013 english\/metric (system of measure \u2013 override from default setting)<\/li>\n<li>map_width \u2013 width (width of image in pixels)<\/li>\n<li>map_height \u2013 height (height of image in pixels)<\/li>\n<\/ul>\n<p>WIDGETS<\/p>\n<p>Strava Latest Rides \u2013 shows a list of the last few activities<\/p>\n<p>Strava Latest Map \u2013 shows map of latest activity with option to limit<br \/>\nlatest map to activities of a certain minimum distance<\/p>\n<h3>Limitations<\/h3>\n<p>It would be nice for the maps that are included within posts to be zoomable, so that we can look at the details of the bike ride and see information for specific segments. This functionality is available on the website but there is no easy link to the strava posts. It&#8217;s an advantage because it&#8217;s native to your site but it&#8217;s a shame if you&#8217;re trying to grow a strava following. For that functionality you need the widget.<\/p>\n<p>Overall it&#8217;s a quick and simple solution to add Strava maps and ride\/run data to your blog post. You can then add images and a textual description to complement the map.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>I installed WP Strava on this blog to share my Strava cycling and running activity. At the time of this blog post you can see my most recent bike rides in the left column as well as the most recent map. With a minimum of code you can also include your bike rides within a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[736],"tags":[733,836],"class_list":["post-3560","post","type-post","status-publish","format-standard","hentry","category-cycling","tag-cycling","tag-strava"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts\/3560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/comments?post=3560"}],"version-history":[{"count":0,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/posts\/3560\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/media?parent=3560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/categories?post=3560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.main-vision.com\/richard\/blog\/wp-json\/wp\/v2\/tags?post=3560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}