Shortcodes
Below are listed shortcodes we’ve created for the site and how to use them.
A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line.
To make things easier we have created a little special button that appears in the visual editor. Look for the RDW podcast logo and click on it to reveal shortcodes and other tools we’ve added to make content creation easier.
Vimeo Player
We’ve included special code in this shortcode that will not only embed the Vimeo video with the latest embedding code, it will also make the video responsive and work on any size screen. All you need is the ID of the video.
Vimeo Shortcode Example:
[vimeo id="123456"]
To get the ID of the video you want to embed, just copy the numbers that are after vimeo.com in the url: https://vimeo.com/151172350
YouTube Player
The shortcode for the YouTube player has all the same features as the Vimeo player – the latest embedding code and responsive on any size screen. It works just like the Vimeo code.
YouTube Shortcode Example:
[youtube id="a0yzbzFzJJA"]
To get the ID of the YouTube video you want to embed, copy and paste the set of characters after the v= in the browser address section of your browser: https://www.youtube.com/watch?v=a0yzbzFzJJA
Embedding a Youtube Video To Start At A Specific Time
Again use the browser address url for the video and add the following at the end of the url:
&start[time in seconds]
[youtube id="FRP0MBNoieY&start=90"]
NextGen Gallery
Albums
[[ngg_images album_ids="###" display_type="photocrati-nextgen_pro_grid_album"]]
Galleries
[[ngg_images gallery_ids="###" display_type="photocrati-nextgen_rdw"]]
When using an NGG Gallery in a podcast article use the following:
[[ngg_images gallery_ids="#,#,#..." image_ids="#,#,#,#..." display_type=photocrati-nextgen_pro_horizontal_filmstrip]]
When in a normal article and you want a set of thumbnails use this:
[[ngg_images gallery_ids="#,#,#..." image_ids="#,#,#,#..." display_type=photocrati-nextgen_pro_thumbnail_grid]]
