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)

Creating template files within your theme

You've now got a functional basic template for your theme. It works great on the main blog page and successfully loads content for anything you can click on in your site. However, we want slightly different templates for other types of content on our site. For example, a single post page needs to have a comment form where visitors can post comments; the page doesn't need to show the date, category, or tags; and the category page should show the category name.

Before we can create other templates, we need to break up the main index.php file into parts so that these different templates can share the common elements. I've mentioned many times the importance of the header, sidebar, and footer. We're going to break them up now. First, let's take a quick look at how it works.

...