{"id":8919,"date":"2015-01-01T17:58:26","date_gmt":"2015-01-01T22:58:26","guid":{"rendered":"http:\/\/www.jbaker.info\/?p=1894"},"modified":"2015-01-01T17:58:26","modified_gmt":"2015-01-01T22:58:26","slug":"best-practices-for-using-wordpress-shortcodes-2","status":"publish","type":"post","link":"https:\/\/www.jbaker.info\/demo05\/best-practices-for-using-wordpress-shortcodes-2\/","title":{"rendered":"Best Practices for Using WordPress Shortcodes"},"content":{"rendered":"<div class=\"xpc_one_half\">\n<div class=\"dropcap\">T<\/div>he use of WordPress keeps growing at an outstanding rate. It seem to have become the preferred choice of bloggers over many other platforms. This has given WordPress tremendous momentum and it will lead the pack for many more years to come.<\/p>\n<div  style=\"margin: -16px 0px 16px 0px;\"><script async src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><ins class=\"adsbygoogle\"     style=\"display:inline-block;width:300px;height:250px\"     data-ad-client=\"ca-pub-5388742219992089\"     data-ad-slot=\"2112551656\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><\/p>\n<p>An unbelievable community for help and support for WordPress has grown over the years. The WordPress platform keeps improving while not letting itself become slow and overly bloated by features. Things have grown to the point where you can do just about anything using a self hosted WordPress blog.<\/p>\n<p>There is one feature that is built into WordPress that really allows a user to take complete control over the look and layout of their blog or website. They are called shortcodes and are short cuts you can use in your post simply by typing in a few characters.<\/p>\n<div>\t<div class='mjbquote' style='color:#000'>\nA shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut.\n<div class='mjbquotelink'><a href='http:\/\/en.support.wordpress.com\/shortcodes\/' target='_blank' title='Opens in a New Tab'>- WordPress.com<\/a><\/div><\/div><\/div><\/p>\n<p>With just a few characters you can add special effects or additional elements or styling. You can use shortcodes to change the format of your page. The two columns as used on this page are created using shortcodes. You can use shortcodes to add things like tab boxes or image sliders as well.\n<\/div>\n<div class=\"xpc_one_half xpc_last\">\n<h4>Why Use Shortcodes?<\/h4>\n<p>There are three main reasons why you should use shortcodes:\n[gn_list style=&#8221;arrow&#8221;] <\/p>\n<ul>\n<li>With shortcodes you can easily customize individual pages or posts on your site.<\/li>\n<li>Be independent of any theme.<\/li>\n<li>Work much faster than using &#8216;point and click&#8217; features.<\/li>\n<\/ul>\n<p>[\/gn_list]<\/p>\n<p>For example, the quoted and cited text below left was inserted into this post simply by using a shortcode like this: <\/p>\n<p>[cc lang=&#8221;text&#8221; nowrap=&#8221;false&#8221;]\n<div>\t<div class='mjbquote' style='color:#000'>Put your quoted text here&#8230;<div class='mjbquotelink'><a href='http:\/\/wordpress.com\/' target='_blank' title='Opens in a New Tab'>- WordPress.com<\/a><\/div><\/div><\/div>\n[\/cc]<\/p>\n<p>You can add interest and color to your post by using shortcodes. For example:<\/p>\n<p>[gn_box title=&#8221;This Box Added With a Shortcode&#8221; color=&#8221;#324D19&#8243;]<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.jbaker.info\/wp-content\/uploads\/2011\/07\/uc-60x60.jpg\" alt=\"\" title=\"uc\" width=\"60\" height=\"60\" class=\"alignright size-thumbnail wp-image-1349\" \/>Using a box shortcode, you can display simple boxes like this. You can include links <a target='_blank' href=\"http:\/\/www.google.com\">(Ex: Open Google in a new tab)<\/a>, images, photos or icons or other content.[\/gn_box]<\/p>\n<p>In this shortcode section of my site you can check out a number of different examples showing how to use shortcodes and the options that are available.<\/p>\n<div  style=\"margin: -16px 0px 16px 0px;\"><script async src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><ins class=\"adsbygoogle\"     style=\"display:inline-block;width:300px;height:250px\"     data-ad-client=\"ca-pub-5388742219992089\"     data-ad-slot=\"2112551656\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<p><\/div><div class=\"xp_clear\"><\/div>\n[clearline]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is one feature that is built into WordPress that really allows a user to take complete control over the look and layout of their blog or website. They are called shortcodes and are short cuts you can use in your post simply by typing in a few characters.<\/p>\n","protected":false},"author":1,"featured_media":2687,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-8919","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-unvetted"],"_links":{"self":[{"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/posts\/8919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/comments?post=8919"}],"version-history":[{"count":0,"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/posts\/8919\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/media\/2687"}],"wp:attachment":[{"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/media?parent=8919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/categories?post=8919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jbaker.info\/demo05\/wp-json\/wp\/v2\/tags?post=8919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}