Tutorials

How to use Shortcodes

  • August 20, 2012

There are quite a few shortcodes available in KingSize WordPress.

Most of which can be seen on this demo “Shortcodes” page.

Shortcodes are designed to make adding certain options and features a little less difficult and time consuming sifting through code. A great explanation of what a shortcode is:

“WordPress shortcodes were introduced in version 2.5 and since then have proved to be one of the most useful features. The average user acting as editor has the ability to publish dynamic content using macros, without the need for programming skills.

When a shortcode is inserted in a WordPress post or page, it is replaced with some other content. In other words, we instruct WordPress to find the macro that is in square brackets ([]) and replace it with the appropriate dynamic content, which is produced by a PHP function.”

WordPress Shortcodes: A Complete Guide by Smashing Magazine

When using the shortcodes provided with the KingSize WordPress template, you locate the “Unicorn Icon” within your Rich Text Editor while creating/editing pages and posts. Just click the icon and this will open a new window/box that you can select from a drop down which of the shortcodes you’re wanting to use. Additionally, using the demo page linked above (and also in our navigation) you can copy the source code.

6 Comments on How to use Shortcodes

  • OurWebMedia says:
    August 20, 2012 at 11:33 pm

    Here’s an example of a comment being made. Due to massive amounts of spam submitted to our comments, they’re disabled, but you can see from these examples how they will look and appear in your websites.

    Reply

    • OurWebMedia says:
      August 20, 2012 at 11:34 pm

      This is a reply to the above comment. Leave a friendly note and include a link. Even attach/insert images.

      Reply

      • OurWebMedia says:
        August 20, 2012 at 11:35 pm

        And a third-level comment for example in reply to the above.

        Reply

  • OurWebMedia says:
    August 20, 2012 at 11:35 pm

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

    Reply

    • OurWebMedia says:
      August 20, 2012 at 11:35 pm

      Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus….

      Reply

  • OurWebMedia says:
    August 20, 2012 at 11:36 pm

    Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh.

    Reply

Leave a Reply

Your email address will not be published. Fields marked with * are required