WordPress: Learn By Coding

WordPress: Learn By CodingDo you want to learn how to create a WordPress theme or plugin? If so, this is the book for you.

In it, we show you how to create a WordPress theme from scratch, use starter themes to get a head start, and code basic WordPress plugins. Follow along if you want to learn how to do this as well.

You can buy the book on Amazon.

Table of Contents

  • Introduction
  • Installation
  • Setup
  • Template Hierarchy
  • Header and Footer
  • PHP Basics
  • More PHP
  • The Loop
  • Styles and Scripts
  • Starter Themes
  • Hooks
  • Plugins
  • Shortcodes
  • Conclusion

Introduction

WordPress is the most popular content management system (CMS) in the world. You can make good money building and maintaining WordPress sites.

This book is for people who want to learn how to build WordPress sites for themselves or clients. We'll create themes and small plugins.

We won't be covering developing and selling plugins in this book, because I don't have any experience doing that. All my experience is working as a freelance and in-house web developer. So that's what I'm going to teach you in this book.

We're also not going to build any complete themes or plugins. This book is short, and is meant to introduce you to WordPress theme and plugin development. It'll cover just enough to get you started.

It'll help if you know PHP, but it's not necessary. You can just follow along, and learn as you go. If you want to learn more about PHP, though, feel free to read my book: PHP: Learn By Coding.

WordPress has documentation available, but it's sometimes confusing. There are also many, many tutorials out there, but a lot of them are outdated. WordPress has been around for a long time. Just follow along, and I'll show you everything you need to get started creating custom WordPress websites.

I've read a lot of development books, and I know that Kindle isn't the best format, so I've created a Git repository that has the code chapter by chapter. This way you can cut and paste the code if you want to. Hopefully, this will make things easier for you. You can find the repository here: https://github.com/scotthughestech/wordpress_book.

Source Code