Book Image

WordPress Complete, Sixth Edition - Sixth Edition

By : Karol Król
Book Image

WordPress Complete, Sixth Edition - Sixth Edition

By: Karol Król

Overview of this book

WordPress Complete, Sixth Edition is a practical guide for everyone who wants to start their journey as an online publisher, website owner, or even a website developer. It takes you step-by-step through the process of planning out and building your site, and offers loads of screenshots and examples along the way. It's also a beginner's guide to theme and plugin development. This book begins with the basics of WordPress, followed by the different components that you as a developer will need to use to work swiftly and efficiently. The book starts by introducing WordPress to new readers in this field. You are then shown how to set it up, implement a blog, and use plug-ins and widgets. You'll use themes to make any website look and feel better and more original. You also learn how to create your own themes and perform testing to ensure your website is bug-free. You will also acquire some idea of how to use WordPress for non-blog-like websites. By the end of the book, you will feel confident enough to design high-quality websites and will be familiar with the ins and outs of WordPress
Table of Contents (14 chapters)

Shortcodes

Shortcodes are a handy way to let a nontechnical person, such as an editor of a website, include dynamic content within pages and posts, without having to actually use any PHP, complex HTML structures, or custom JavaScript. In other words, shortcodes are handy reusable pieces of code, yet they don't require any actual coding experience or knowledge on the end user's part.

Shortcodes and the way they work

The way a shortcode works is that you tell WordPress to look at the text within square brackets ([]) and evaluate it by running a PHP function. That PHP function can live in the functions.php file of your theme, or in a plugin file, or in a widget file. Let's create a simple shortcode and include...