The Power of Shortcodes
Shortcodes are simple snippets of text that help to make your WordPress life easier. These short snippets call up powerful functions in your WordPress content in what would normally be several lines of HTML and PHP code.
The great thing about the Presstige theme is that you won’t ever have to remember all the available shortcodes, because they’re all integrated right into your WordPress editor. Just click the button and fill in the blanks! Here’s a few quick examples of how the power of shortcodes can give you professional and dynamic results with minimal effort.
Latest Posts Shortcode:
For example, we could type this in our editor:
[latest excerpt="true" thumbs="true" width="75" height="75" num="3" cat="6"]
The shortcode above tells WordPress to show us the latest posts from a specific category, along with a few other cool things.
Explanation:
- num=3: Display the latest 3 posts.
- cat=6: Show Posts only from Category ID 6. (can be comma separated)
- excerpt=true: Displays the excerpt.
- thumbs=true: Display the post’s featured image.
- width=75 height=75: Make the thumbnails 75px square.
The Result:
Tab Shortcodes
Another shortcode you’ve probably seen on this demo is the tabs and toggles. The tabs and toggles shortcodes allow nested elements. Here, we’ve nested a couple latest posts shortcodes inside the [tabs]
shortcode:
Latest Posts from Marketing
Latest Posts from Design
Sample Blog Post
Lorem ipsum dolor sit amet, omnis melius gloriatur at his, veri exerci conclusionemque pro eu, simul possit ancillae an vix. Ut case iudico pro, vero necessitatibus te quo, ea sit regione appetere. Exerci persequeris pro in, usu brute iudico erroribus at. Quem posse nostro eam ei, at tale iriure admodum
Latest Posts from Networking
Additional Static Content
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Toggle (Accordion) Shortcodes
The [toggle]
shortcode works similar to the [tabs]
shortcode, but displays your content in a vertial accordion effect.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Slideshow Shortcodes
You can also display any slideshow in your content by invoking the [slideshow]
shortcode:
Inner Column Shortcodes
We didn’t stop here. You can also generate complex pure CSS fractional columns by using these simple shortcodes:
[one_third]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_third]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_third]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_fourth]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_fourth]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_fourth]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_fourth]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_third]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[two_thirds]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_half]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[one_half]
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Buttons
Everyone likes buttons and this easy [button]
shortcode can deliver great results. The button shortcode accepts 3 arguments:
- link: URL
- size: small, medium, large
- align: left, center, right
- color: (specified below)
- target: blank,self
- caption: freeform text
Preview these buttons with captions
color="white"
color="gray"
color="black"
color="lightblue"
color="blue"
color="darkblue"
color="lightgreen"
color="green"
color="darkgreen"
color="lightred"
color="red"
color="darkred"
color="yellow"
color="orange"
color="brown"