Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Development Quick Start Guide

You're reading from   WordPress Development Quick Start Guide Build beautiful and dynamic websites for your domain from scratch

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789342871
Length 300 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Rakhitha Nimesh Ratnayake Rakhitha Nimesh Ratnayake
Author Profile Icon Rakhitha Nimesh Ratnayake
Rakhitha Nimesh Ratnayake
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction to WordPress Development FREE CHAPTER 2. Managing Database Structure, Storage, and Retrieval 3. Designing Flexible Frontends with Theme Development 4. Building Custom Modules with Plugin Development 5. Extending Plugins with Addons, Filters, and Actions 6. Practical Usage of WordPress APIs 7. Managing Custom Post Types and Processing Forms 8. Discovering Key Modules in Development 9. Enhancing Security, Performance, and Maintenance 10. Other Books You May Enjoy

Understanding the usage of shortcodes


We discussed the techniques of building shortcodes in previous section. Now we need to understand the techniques of using these shortcodes in different parts of the site. Let's take a look at the different locations where we can use shortcodes:

  • Posts and pages: This is the most common use of a shortcode, where the content creator directly adds the shortcode to the post or page editor. Then, WordPress executes the shortcode and displays the result in the frontend post or page.
  • Widgets: We can use shortcodes inside WordPress widgets to provide dynamic content similar o the posts and pages. However, we have to use additional code depending on the widget we use. The WordPress Text widget allows you to add shortcodes directly to the content editor and display the output on the frontend. Sometimes, you may want to use the shortcodes with HTML elements and hence need to use the HTML widget instead of the Text widget. The HTML widget doesn’t support shortcodes...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime