Book Image

WordPress 5 Complete - Seventh Edition

By : Karol Król
Book Image

WordPress 5 Complete - Seventh Edition

By: Karol Król

Overview of this book

Back in the day, when you wanted to launch a new website, you either had to learn web programming yourself or hire a professional who would take care of the whole process for you. Nowadays, with WordPress, anyone can build an optimized site with the least amount of effort possible and then make it available to the world in no time. Here, in the seventh edition of the book, we are going to show you how to build great looking and functional websites using WordPress. The new version of WordPress – 5.0 – comes with a few important changes, and we tell you all about how to use them effectively. From crafting content pages using the block editor, and customizing the design of your site, through to making sure it's secure, we go through it all. The book starts by introducing WordPress and teaching you how to set it up. You are then shown how to create a blog site, start writing content, and even use plugins and themes to customize the design of the site and add some unique elements to set it apart. If you want to get more in-depth, we also show you how to get started creating your own themes and plugins. Finally, we teach you how to use WordPress for building non-blog websites. By the end of the book, you will be sufficiently skilled to design high-quality websites and will be fully familiar with the ins and outs of WordPress.
Table of Contents (18 chapters)
Free Chapter
1
Section 1: WordPress
6
Section 2: Customizing WordPress
14
Section 3: Non-Blog Websites

Shortcodes

Shortcodes are a handy way to let a non-technical 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...