Title: Adding &amp;layout=gallery issue (free version)
Last modified: August 30, 2016

---

# Adding &layout=gallery issue (free version)

 *  Resolved [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/)
 * I just downloaded this plugin and it looks quite nice, but I’m having an issue.
 * Everything works great until I add the “&layout=gallery” parameter to the shortcode
   in my post – at that point, the plugin gets a 400:Bad Request response. Turning
   on debugging in the options page, it looks like adding the layout parameter replaces
   my valid API key in the request URL with the value ‘PRIVATE’. If I copy and paste
   the request URI into a new browser tab and replace ‘PRIVATE’ with my actual API
   code, the results are returned as expected.
 * It’s the only plugin I have active, and I’ve switched back to the 2015 theme 
   for testing. Any ideas?
 * [https://wordpress.org/plugins/youtube-embed-plus/](https://wordpress.org/plugins/youtube-embed-plus/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653002)
 * Maxxd,
 * Please provide the shortcode that you posted below and a link to the page that
   has this issue on your site.
 * We’ll also leave this link to a tutorial video here in case it can help: [https://www.youtube.com/watch?v=XvFL-Rr-2Qo](https://www.youtube.com/watch?v=XvFL-Rr-2Qo)
 * -EmbedPlus Team
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653012)
 * Hi embedplus. The shortcode used is:
    `[embedyt] http://www.youtube.com/embed?
   listType=playlist&list=UUK7IIV6Q2junGSdYK3BmZMg&layout=gallery[/embedyt]`
 * Again, without the ‘&layout=gallery’, the video appears as expected. Also, this
   happens with any channel.
 * Unfortunately, the page is currently in development for a client and behind a
   password-protected gateway. It’d break contract to give out credentials.
 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653018)
 * You code works fine on our end: [http://postimg.org/image/7ttj9eior/](http://postimg.org/image/7ttj9eior/)
   
   We tested it on multiple themes – new lotus, twenty fifteen, …
 * Since we can’t see your site, your best bet is to:
    1) make sure you’ve created
   your required YouTube API key and saved it within the plugin’s settings page (
   note that this is different from the PRO key): [https://www.youtube.com/watch?v=2vmBACVETf4](https://www.youtube.com/watch?v=2vmBACVETf4)
 * 2) Check if you have any console errors by using the the inspect element feature
   on a browser like Chrome.
 * 3) Try another theme to make sure it’s not your current theme that’s causing 
   the problem.
 * -EmbedPlus Team
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653020)
 * Weird…
 * I’ve tried the twenty fifteen, twenty fourteen, twenty thirteen, and my own custom
   theme. As I said, I’ve deactivated all plugins except this one.
 * The API key has been created and saved in the plugin’s settings page in the ‘
   Gallery Settings and Direction’ section, and when I manually replace the ‘PRIVATE’
   value in the key parameter of the request URI with the saved API key, it works.
 * The only output I get to console on page load is the following:
 * YT API ready
    Setting up YT API events: _ytid_24945
 * I’ll try refreshing my API key and uninstalling and reinstalling the plugin, 
   all that normal stuff – if it works I’ll let you know.
 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653022)
 * Why don’t you take it off debug mode while you’re doing this. It’s something 
   you turn on if we explicitly ask you to do.
 *  Thread Starter [maxxd](https://wordpress.org/support/users/maxxd/)
 * (@maxxd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653036)
 * Apologies all around – refreshing my API key got things working. Thanks so much
   for the help!
 *  Plugin Author [embedplus](https://wordpress.org/support/users/embedplus/)
 * (@embedplus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653056)
 * Great. Feel free to rate: [https://wordpress.org/support/view/plugin-reviews/youtube-embed-plus](https://wordpress.org/support/view/plugin-reviews/youtube-embed-plus)
 *  [sddarkman619](https://wordpress.org/support/users/sddarkman619/)
 * (@sddarkman619)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653253)
 * I can’t seem to get the thumbnails to work at all, I deleted the api re authed
   the api and the line I put in my blog is this:
    [http://www.youtube.com/playlist?list=PL911E1D82E99E649D&layout=gallery](http://www.youtube.com/playlist?list=PL911E1D82E99E649D&layout=gallery)
 * still no thumbnails.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Adding &layout=gallery issue (free version)’ is closed to new replies.

 * ![](https://ps.w.org/youtube-embed-plus/assets/icon-256x256.png?rev=2165403)
 * [Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades](https://wordpress.org/plugins/youtube-embed-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-embed-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-embed-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-embed-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-embed-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-embed-plus/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [sddarkman619](https://wordpress.org/support/users/sddarkman619/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/adding-layoutgallery-issue-free-version/#post-6653253)
 * Status: resolved