adsense

How to Use Short Code in Wordpress





1. Copy the shortcode of the media item you are looking to embed. Websites like YouTube (video) and Soundcloud (audio) should offer premade shortcodes for you to copy directly from their videos and audio tracks. Copy the shortcode by right-clicking on the code and selecting the 'Copy' option from the popup menu. Alternatively, click the 'copy' button next to the code if the website offers one.
2. Log in to your WordPress dashboard and navigate to the post or page you want to use a shortcode in. Switch to the HTML viewer by clicking on the 'HTML' button at the top of the edit page dashboard.

3. Scroll down the text and HTML code until you find the section where your media object needs to be inserted. Click the cursor where you need the media to start, for example before a paragraph of after and image. Right-click and select 'Paste' from the popup menu to embed the media item into your Web page.
4. Insert your own shortcode if the media item you are looking to embed does not have one. WordPress has developed a series of shortcodes already that you can manipulate on your own. For example, embed a YouTube video by copying the video URL and entering the following code into your page's HTML view:[youtube=http://youtubelink.com]Replace the 'http://youtubelink.com' with the actual YouTube URL and the video should be visible on your page. Other shortcodes developed by WordPress include those for RockYou and SlideShare slideshow programs and PodTech, TED Talks, Vimeo and Flickr video channels. See the Resources section for a list of all the current shortcodes tags developed by WordPress.
5. Check your content is working properly by clicking the 'Preview' option on the right-hand side of the edit page dashboard. Click the 'Publish' button if the content works well enough for publishing on your website.

Comments

0 Responses to "How to Use Short Code in Wordpress"

Post a Comment

Popular Posts

About