Book Image

Wordpress Development Quick Start Guide

By : Rakhitha Nimesh Ratnayake
Book Image

Wordpress Development Quick Start Guide

By: Rakhitha Nimesh Ratnayake

Overview of this book

WordPress is the most used CMS in the world and is the ideal way to share your knowledge with a large audience or build a profitable business. Getting started with WordPress development has often been a challenge for novice developers, and this book will help you find your way. This book explains the components used in WordPress development, when and where to use them, and why you should be using each component in specific scenarios. You begin by learning the basic development setup and coding standards of WordPress. Then you move into the most important aspects of the theme and plugin development process. Here you will also learn how themes and plugins fit into the website while learning about a range of techniques for extending themes and plugins. With the basics covered, we explore many of the APIs provided by WordPress and how we can leverage them to build rapid solutions. Next, we move on to look at the techniques for capturing, processing, and displaying user data when integrating third-party components into the site design. Finally, you will learn how to test and deploy your work with secure and maintainable code, while providing the best performance for end users.
Table of Contents (16 chapters)
Title Page
Copyright and Credits
Packt Upsell

Chapter 7. Managing Custom Post Types and Processing Forms

In web development, we use Model-View-Controller architecture to separate different aspects of the sites into their own layers. The Model layer is intended to manage the data and the business logic of the application. In WordPress development, it's difficult to use such architecture in its original form. However, modeling data and logic is important for any kind of a website. So, we use built-in custom post types, and custom forms to manage the data capturing process in WordPress. 

In this chapter, we are going to explore the importance and use of custom post type features in custom development tasks. We will be building a new custom post type to handle the properties in a real estate listing website, while using the most important features such as taxonomies, custom fields, and template loading. By default, custom post types features are enabled in the backend, and hence we explore the process of using custom forms in the frontend...