{"id":10842339,"date":"2018-11-02T16:52:14","date_gmt":"2018-11-02T16:52:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/shortcode-syntax-3\/"},"modified":"2018-11-02T16:52:14","modified_gmt":"2018-11-02T16:52:14","slug":"shortcode-syntax-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/shortcode-syntax-3\/","title":{"rendered":"shortcode syntax"},"content":{"rendered":"<p>Hi, I have inserted onto this test page a few attempts to get the plugin working as I want, with some optional parameters as shown at<br \/>\n<code>https:\/\/developers.google.com\/youtube\/player_parameters<\/code><\/p>\n<p>The topmost attempt is an iframe, and it works okay. The iframe syntax allows optional parameters appended to the URL, like this:<br \/>\n<code>src=&quot;https:\/\/www.youtube-nocookie.com\/embed\/F7bL66Nxk6s?controls=0&amp;modestbranding=1&amp;rel=0&amp;fs=0&quot;<\/code><\/p>\n<p>Below that, I tried your shortcode with the same params appended:<br \/>\n<code>[lyte id=&quot;F7bL66Nxk6s?controls=0&amp;modestbranding=1&amp;rel=0&amp;fs=0&quot; \/]<\/code><br \/>\nBut you can see the params are not working, the player looks different from the iframe one.<\/p>\n<p>Then I tried the shortcode with the parameters separated by spaces not ampersands, and the values are not in quotes:<br \/>\n<code>[lyte id=&quot;F7bL66Nxk6s&quot; controls=&quot;0&quot; modestbranding=&quot;1&quot; rel=&quot;0&quot; fs=&quot;0&quot; \/]<\/code><\/p>\n<p>Then I tried the URL prefixed by httpv, with a delayed start param, which is working<br \/>\n<code>httpv:\/\/www.youtube.com\/watch?v=F7bL66Nxk6s?rel=0&amp;start=20<\/code><\/p>\n<p>Then the same URL with the params I want, which doesn&#8217;t work.<br \/>\n<code>httpv:\/\/www.youtube.com\/watch?v=F7bL66Nxk6s?controls=0&amp;modestbranding=1&amp;rel=0&amp;fs=0<\/code><\/p>\n<p>Is there some other trick to get these params working?<\/p>\n<p>A few other things:<br \/>\nUsing the httpv URL, I could not get the video to play from the youtube-nocookies.com domain. <\/p>\n<p>I have checked the setting for &#8220;Cache thumbnails locally&#8221;, and I don&#8217;t see them. Do I have to do something else?<\/p>\n<p>It would be great if you would update your instructions for the params and make them more complete. You would also get rid of the obsolete showinfo example. <\/p>\n","protected":false},"template":"","class_list":["post-10842339","topic","type-topic","status-publish","hentry","topic-tag-shortcode","topic-tag-youtube"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10842339","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\/10842339\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10842339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}