Add code without doing any coding

Shortcodes are special tags you can insert in the body of your post which act as a kind of shorthand for more complicated coding. Whenever WordPress “sees” one of these tags in a post, it automatically replaces it with the corresponding HTML on-the-fly.

Here are a few examples of the available shortcodes for self-hosted WordPress:

  • [audio] – embeds an audio file and displays a simple audio player in the page
  • [gallery] – creates a simple gallery based on a set of images
  • [video] – embed a locally-hosted video in the page

You can type these shortcodes directly into the post editors (in either Visual or Text mode) and most take one or more additional parameters for configuration.

For instance:

[audio src="audio-source.mp3"]

[gallery ids="729,732,731,720"] (the ids represent image ids)

[video src="video-source.mp4"]

Check out the full list shortcodes to see all the possibilities.




6.4
Implementation: 4 hours
Effectiveness: 4/5
Difficulty: 6/10
TAGS
#Tools #Wordpress