May 2017
Beginner to intermediate
536 pages
14h 25m
English
Let's consider a much more advanced scenario in creating a relationship between post types. Assume that we have been assigned to build a project management application with WordPress. We can match projects to a custom post type. Project-specific details such as project manager, duration, and cost will be stored in the wp_postmeta table. It's not ideal to use the wp_postmeta table to store project tasks since each project contains multiple tasks, and a single project task can contain its own attributes and values. Therefore, we create another custom post type to store project tasks, and all the task-related data is stored inside the wp_postmeta table. Finally, we can associate projects with tasks ...
Read now
Unlock full access