iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

Posts vs Pages

WordPress has two built-in content types. Posts are dated content (blog, news, updates) with categories and tags. Pages are static (About, Contact, Privacy) with hierarchy and a custom template per page.

When to use which

EXAMPLE
POSTS                              PAGES
-----                              -----
Dated                              Undated (evergreen)
In the feed / RSS                  Excluded from feeds
Have categories + tags             Have parent/child hierarchy
Default archive: /YYYY/MM/DD/      Default URL: /page-slug/
Big list of them                   Small, deliberate set
Custom Post Types are like Posts   Custom page templates per Page

# When you need a third shape, register a Custom Post Type:
register_post_type('product', [
    'public'       => true,
    'label'        => 'Products',
    'has_archive'  => true,
    'supports'     => ['title', 'editor', 'thumbnail', 'custom-fields'],
    'rewrite'      => ['slug' => 'shop'],
    'show_in_rest' => true,    // Gutenberg + REST + headless
]);

Why it matters

In Gutenberg / block themes, every post type can have its own block template. Don’t cram everything into Posts — CPTs are cheap and they keep your URL structure and admin UI clean.

Tip: Tweak the snippet with Try it Yourself », then sit the quiz at the bottom of the page.

Example

Example
// Posts — chronological, taxonomies, RSS.
// Pages — evergreen (About, Contact). No tags/categories by default.
Try it Yourself »

Exercise

Static content type is…

Test yourself

Q1. Posts are typically…
Q2. Pages are typically…
Q3. Custom Post Types let you add…

Discussion

Loading…