• 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://www.ads-software.com/plugins/youtube-channel/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    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.