Course
Theme development
Build a WordPress theme from scratch using a fictional company site as your project: template hierarchy, functions.php, custom post types, and custom fields — the real-world patterns, all in one build.
Start learning
Let's build a theme for a company site
Setup: what to build and the tools4 lessons
Framing with templates6 lessons
- 05The template hierarchy — each URL gets its own file in charge
front-page.phpsingle.phparchive.phphome.php - 06Splitting shared parts into header.php and footer.php
header.phpfooter.phpwp_head()wp_footer() - 07Building the top page with front-page.php
front-page.phpWP_Query - 08Building an About page with page.php
page.phpthe_content()the_title() - 09Building the news list and detail views
home.phpsingle.phpthe_permalink() - 10Category lists and the 404 page
category.php404.phpthe_category()
Wiring features in functions.php4 lessons
- 11Wiring up functions.php and CSS the right way
functions.phpwp_enqueue_style()add_theme_support() - 12A navigation menu you can edit from the admin screen
register_nav_menus()wp_nav_menu()current-menu-item - 13Creating "products" with a custom post type
register_post_type()archive-shohin.phpsingle-shohin.php - 14Giving products their info with custom fields
get_post_meta()esc_html()