Frameworks
WordPress Cheat Sheet
Print-ready cheat sheet for WordPress, organized for fast lookup, study, and desk-side use
Sample
What's in this cheat sheet
- Theme Basics
- Template Hierarchy
- The Loop
- Custom Post Types
- Hooks & Filters
- WP_Query
- REST API
- Functions
- Enqueue
- Common Patterns
Required Files
style.css | Theme metadata header + styles |
index.php | Fallback template (required) |
functions.php | Theme setup, hooks, enqueue |
screenshot.png | Theme preview (1200x900) |
style.css Header
/*
Theme Name: My Theme
Theme URI: https://example.com
Version: 1.0
Requires at least: 6.0
*/
functions.php Setup
add_action('after_setup_theme', function() {
add_theme_support('title-tag');
add_theme_support('post-thumbnails');
add_theme_support('html5', ['search-form', 'gallery']);
register_nav_menus(['primary' => 'Main Nav']);
});
Download the full cheat sheet for all sections, formatted for print
Download PDFDownloads
Choose the treatment that matches how you read
-
Recommended
Standard
B&W, ink-efficient. The default for laser printers and photocopies
Best for Printouts and desk-side reference
-
Color
Warm color accents for on-screen reading or color printers
Best for Screen reading or color printers
-
Reference Card
Maximum density, 4-column layout. Everything on one page
Best for Fast scanning and minimum paper use