Book Image

WordPress Web Application Development

By : Rakhitha Nimesh Ratnayake
Book Image

WordPress Web Application Development

By: Rakhitha Nimesh Ratnayake

Overview of this book

Table of Contents (19 chapters)
WordPress Web Application Development Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction to custom content types


In WordPress terms, custom content types are referred to as custom post types. The term "custom post type" misleads some people to think of them as different types of normal posts. In reality, these post types can model almost anything in real web applications. This is similar to collections in other web frameworks such as Ruby on Rails or Meteor.js. These post types are stored in the normal posts table and it could well be the reason behind its conflicting naming convention.

Prior to the introduction of custom post types, we only had the ability to use normal posts with custom fields to cater to advanced requirements. The process of handling multiple post types was a complex task. The inability to manage different post types in their own lists and the inability to add different fields to different posts are some of the limitations with the old process. With the introduction of custom post types, we now have the ability to separate each different type...