WordPress as a Framework
summary
Shows how to use WordPress as a development framework by building a library app: implements books as custom post types, genres as taxonomies, and ISBN as post metadata, and uses WP_Query, WP_User and $wpdb plus object‑oriented classes (Theme, News, Toolkit) to keep templates thin. Demonstrates a controller call that fetches the five bestsellers and caches the results with transients for 12 hours to avoid repeated SQL; recommends Advanced Custom Fields, Roots/Underscores starter themes and PHP 5.3+ OOP patterns.
AI-written summary · about
chapters (11)
- 0:00WordPress as framework
- 1:59Why WordPress needs structure
- 4:06MVC pattern in WordPress
- 6:35Database abstraction
- 8:43Template handling and themes
- 10:52Authentication and caching
- 12:19Starting your app
- 13:21Recommended starter themes
- 14:46Organizing functions with classes
- 16:33Essential utility classes
- 18:42Conclusion
