Frameworks

WordPress Cheat Sheet

Print-ready cheat sheet for WordPress, organized for fast lookup, study, and desk-side use

Source
WordPress Developer Resources (developer.wordpress.org)
License
MIT
Variants
3 download options
Updated
2026-03-27

Sample

What's in this cheat sheet

Required Files

style.cssTheme metadata header + styles
index.phpFallback template (required)
functions.phpTheme setup, hooks, enqueue
screenshot.pngTheme 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 PDF

Downloads

Choose the treatment that matches how you read

Text formats

Copy or download as plain text

Download Markdown

Best for copying commands, snippets, and config into notes, prompts, or docs

Download Markdown

Preview

The web preview is for quick browsing. The PDF remains the authoritative print artifact

Open in Browser