{"id":16906308,"date":"2023-07-19T12:12:34","date_gmt":"2023-07-19T12:12:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/missing-data-link\/"},"modified":"2023-07-19T12:12:34","modified_gmt":"2023-07-19T12:12:34","slug":"missing-data-link","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/missing-data-link\/","title":{"rendered":"Missing data-link"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Really liking the implementation of your Google Photo album embed tool. I appreciate all the work you&#8217;ve done on this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">During implementation I noticed that a parameter from your original creator didn&#8217;t make it into the shortcode: the data-link attribute. This prevents the album title from linking to the original location at Google Photos.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Something like this <code>. ($props -&gt; link !== NULL ? ' data-link=\"' . $props -&gt; link . '\"' : '' )<\/code> in the <code>get_embed_player_html_code()<\/code> method should do the trick.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-16906308","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16906308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16906308\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16906308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}