Title: Shortcode Options
Last modified: August 31, 2016

---

# Shortcode Options

 *  [sampsonwilcox](https://wordpress.org/support/users/sampsonwilcox/)
 * (@sampsonwilcox)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/shortcode-options-15/)
 * Hi Aleksander,
    How are the following options added to the shortcode [youtube-
   channel]
 * (This is what you have under the help tab for the plugin settings page)
 * channel (string) ID of preferred YouTube channel. Do not set full URL to channel,
   but just last part from URL – ID (name)
    vanity (string) Vanity name. username(
   string) Legacy YouTube username. playlist (string) ID of preferred YouTube playlist.
   resource (int) Resource to use for feed: • 0 Channel (User Uploads) • 1 Favorites(
   for defined channel) • 2 Playlist • 3 Liked Videos (for defined channel) cache(
   int) Period in seconds for caching feed. You can disable caching by setting this
   option to 0, but if you have a lot of visits, consider at least short caching(
   couple minutes). fetch (int) Number of videos that will be used as stack for 
   random pick (min 2, max 50) num (int) Number of videos to display per YTC block.
   random (bool) Option to randomize videos on every page load. [Individual option,
   does not exists in global plugin settings!]
 * I would like to add the ‘random’ option to one of my implementations of shortcode.
 * Thanks,
 * [https://wordpress.org/plugins/youtube-channel/](https://wordpress.org/plugins/youtube-channel/)

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

 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/shortcode-options-15/#post-7194655)
 * Hi tehere,
 * You can open main plugin file youtube-channel.php in code editor and read through
   method `shortcode` where shortcode parameters are extracted and prepared, then
   method `output` where parameters are processed.
 * Cheers
 *  [markbarner](https://wordpress.org/support/users/markbarner/)
 * (@markbarner)
 * [10 years ago](https://wordpress.org/support/topic/shortcode-options-15/#post-7194944)
 * could you post an example of how to use / write the code with something like 
   display thumbnails?

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

The topic ‘Shortcode Options’ is closed to new replies.

 * ![](https://ps.w.org/youtube-channel/assets/icon.svg?rev=2845692)
 * [My YouTube Channel](https://wordpress.org/plugins/youtube-channel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-channel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-channel/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-channel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-channel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-channel/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [markbarner](https://wordpress.org/support/users/markbarner/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/shortcode-options-15/#post-7194944)
 * Status: not a support question