Click here to load reader
Upload
herb-miller
View
637
Download
0
Embed Size (px)
DESCRIPTION
An overview of shortcodes for WordPress: what, why and how? by Herb Miller, of Bobbing Wide and [oik]-plugins Slides from WordUp Pompey, held on February 23rd 2012. See also http://wp-pompey.org.uk/wordup-pompey-wordpress-meetup-for-portsmouth/
Citation preview
[ ] Shortcodes – what, why, how?
What is a shortcode?
For creating macros to be use in a posts content (sic)
It's something that you type into a page, post or elsewhere on your website.When the page is displayed the shortcode magically produces the stuff you want it to produce.
You don't have to type zillions of lines of code.It should produce quality HTML and styling
They're supposed to save you time.
WordPress shortcode examples
Caption for an image[caption width=70caption='This is a caption']
Gallery of attached images[gallery link="file"columns="2"orderby="title"]
Embed media[embed width=”256”]http://www.youtube.com/watch?v=xzYL873wEpg[/embed]
[oik] shortcodes
Simple [bw_telephone] [bw_email] [bw_mobile] [wp] [bw]
[oik] shortcodes
Average[bw_show_googlemap][bw_directions][bw_contact_button][bw_follow_me]
Complex shortcodes
[bw_email_signature]
[bw_pages][bw_plug]
[bw_pages][bw_posts][bw_tree]
[bw_attachments] [bw_pdf]
[bw_images]
Other shortcodes
Known[wcs_qr_code] – QR code generator[si_contact_form] – and other Contact forms[paypal] – PayPal buttons: buy, donate, add to cart, checkout
Unknown[asin] – buy a product from Amazon[members]content only visible to members[/members]
[timed end=23Feb2012] content that will be displayed on/before a particular date [/timed]
For more information
Install plugins > Add New > term=shortcodeLists 1,000 items to choose from!
Or visit http://www.oik-plugins.com/other-shortcode-plugins/
Many plugins provide shortcodes. Find the plugins you want then see what shortcodes you can use.Note: If you use [oik] then you may find the other plugin's shortcodes will work in widgets and footers.
Herb Miller
bobbingwidewebdesign.comoik-plugins.comcwiccer.comfobbonghide.comherbmiller.me
@herb_miller@bobbingwide@wppompey
wp-pompey.org.uk Powered by WordPress