iframe
Advanced iFrame iframe Donate GitHub [iframe src=”http://www.youtube.com/embed/7_nAZQt9qu0″ width=”100%” height=”500″] shortcode should show something like this: WordPress removes iframe html tags because of security reasons. Iframe shortcode is the replacement of the iframe html tag and accepts the same params as iframe html tag does. You may use iframe shortcode to embed content from YouTube, Vimeo, Google Maps or from any external page. If you need to embed content from YouTube, Vimeo, SlideShare, SoundCloud, Twitter via direct link, you may use [embed]http://www.youtube.com/watch?v=7_nAZQt9qu0[/embed] shortcode. [embed] shortcode is a core WordPress feature and can embed content from many resources via direct link. Important: You can not embed HTTP pages into HTTPS pages and vice versa. So the protocol (http or httpS) for parent and embedded page should match. iframe params: src – source of the iframe: [iframe src="http://www.youtube.com/embed/7_nAZQt9qu0"]; by default src=”http://www.youtube.com/embed/7_nAZQt9qu0″; width – width in pixels or in percents: [iframe width="100%"] or [iframe width="600"]; by default width=”100%”; height – height in pixels: [iframe height="500"]; by default height=”500″; scrolling – with or without the scrollbar: [iframe scrolling="no"]; by default scrolling=”yes”; frameborder – with or without the frame border: [iframe frameborder="0"]; by default frameborder=”0″; marginheight – height of the margin: [iframe marginheight="0"]; removed by default; marginwidth – width of the margin: [iframe marginwidth="0"]; removed by default; allowtransparency – allows to set transparency of the iframe: [iframe allowtransparency="true"]; removed by default; id – allows to add the id of the iframe: [iframe id="custom_id"]; removed by default; class – allows to add the class of the iframe: [iframe class="custom_class"]; by default class=”iframe-class”; style – allows to add the css styles of the iframe: [iframe style="margin-left:-30px;"]; removed by default; same_height_as – allows to set the height of iframe same as target element: [iframe same_height_as="div.sidebar"], [iframe same_height_as="div#content"], [iframe same_height_as="body"], [iframe same_height_as="html"]; removed by default; any_other_param – allows to add new parameter of the iframe [iframe any_other_param="any_value"]; any_other_empty_param – allows to add new empty parameter of the iframe (like “allowfullscreen” on youtube) [iframe any_other_empty_param=""];
Spreaker Shortcode
The Spreaker shortcode plugin is an easy way to embed Spreaker audio player into your WordPress blog. It works for any Spreaker episode, show, or user. Once you install this plugin, it will work on all of your blog posts. A simple example: [spreaker type=player resource="episode_id=3331356"] More Options Spreaker shortcode requires the resource play. It can be only of the following: resource="episode_id=X": id of the episode to embed. resource="show_id=X": id of the show, whose latest episode should be displayed. resource="show_key=X": private key of the show to embed. The plugin also supports the following optional parameters: width: player’s width – can be in % or px (ie. 100% or 400px). height: player’s height – can be in % or px (ie. 100% or 400px). theme: player’s UI theme. Supported themes are: light (default) and dark. color: player’s main color. Supported fromats are short and long hex values (ie: F00 or FF0000). This feature requires the podcast author to subscribe to Station plan or above. cover: HTTPS url of an image to display as player’s background. playlist: configures how the playlist should be built. It can be playlist="false" to disable the playlist or playlist="show" to display all show’s episodes in the playlist. The default behavious depends on resource. The playlist is visible only if the player height is greater than 200px. playlist-continuous: enables or disables the playlist continuous playback. When true it continuously plays all episodes in the playlist until the end. playlist-loop: enables or disables loop playlist playback when continuous playback is enabled. When true and playlist continuous playback is enabled as well, it will loop the playlist continuously (defaults to false). playlist-autoupdate: enables or disables the playlist autoupdate, when a new episode is published. This feature is enabled by default. chapters-image: enables or disables the display of chapters images in the player (defaults to true). episode-image-position: when right or left shows the episode image on the right or left (defaults to right) hide-likes: when true the likes button is not displayed in the player (defaults to false) hide-comments: when true the comments button is not displayed in the player (defaults to false) hide-sharing: when true the share button is not displayed in the player (defaults to false) hide-logo: when true the Spreaker logo is not displayed in the player (defaults to false). This feature requires the podcast author to subscribe to Broadcaster plan or above. hide-episode-description: when true the button to open the description of the current episode is not displayed in the player (defaults to false) hide-playlist-descriptions: when true the button to open the description of episodes in the playlist is not displayed in the player (defaults to false) hide-playlist-images: when true the images of episodes in the playlist are not displayed in the player (defaults to false) hide-download: When true, it hides the episode download button (defaults to true) How to get the shortcode Play any track on www.spreaker.com and then click on the share button in the player (bottom-right corner): you can customize the appearance of the player and get the shortcode to copy and paste to your WordPress blog. Help If you need further help, please contact us at help.spreaker.com.