WordPress SEO Title and Meta Description Templates | SEO Forge
Download Log in
All Features: AI-Powered WordPress SEO

Title and Meta Description Templates for WordPress

SEO Forge lets you define title and meta description templates at the global, post-type, taxonomy, and post level — with variable substitution that automatically fills in things like post title, site name, publish year, and category. Set the template once, and every post follows it without manual configuration.


Why templates matter

On any WordPress site with more than a handful of posts, writing unique SEO titles and descriptions for each one is either (a) a lot of manual work or (b) something that gets forgotten and ends up with empty or default fields.

Templates solve this by giving you a pattern every post automatically follows. For example:

  • Template: {{title}} — {{siteName}}
  • Applied to a post titled “Best Caching Plugins”:
  • Result: Best Caching Plugins — Example Site

You can still override the template on individual posts when you need to. But for the 90% of posts where a standard pattern is fine, templates eliminate the busywork.


Available variables

Post variables

  • {{title}} — the post title
  • {{excerpt}} — the post excerpt
  • {{author}} — the post author’s display name
  • {{authorFirstName}} — first name
  • {{authorLastName}} — last name
  • {{date}} — publish date
  • {{modifiedDate}} — last modified date
  • {{page}} — current page number (for paginated posts)

Site variables

  • {{siteName}} — your WordPress site name
  • {{tagline}} — your WordPress tagline
  • {{siteUrl}} — your site URL
  • {{currentYear}} — current year (evergreen content)
  • {{currentMonth}} — current month
  • {{currentDate}} — full current date

Taxonomy variables

  • {{category}} — primary category of the post
  • {{categories}} — all categories (comma-separated)
  • {{tag}} — primary tag
  • {{tags}} — all tags

Custom field variables

  • {{cf:fieldname}} — any custom field value from the post
  • {{acf:fieldname}} — any ACF field

Template cascade

SEO Forge uses a cascade to determine which template applies to a given post:

  1. Per-post override — if set, this wins
  2. Post-type template — e.g., blog posts use one template, WooCommerce products use another
  3. Taxonomy template — e.g., category archive pages use a specific template
  4. Global default — catch-all template for anything not covered above

Higher-specificity templates take precedence. Most sites define a global default plus a few post-type templates (one for post, one for product, one for page) and leave the rest to cascade.


Separate templates for different page types

SEO Forge provides separate template slots for:

  • Posts (blog)
  • Pages
  • Custom post typesper post type
  • Categoriesthe category archive page
  • Tagsthe tag archive page
  • Custom taxonomies
  • Author archivese.g., “{{author}} — Archives at {{siteName}}”
  • Date archives
  • Search results pagee.g., “Search results for ‘{{searchQuery}}’ — {{siteName}}”
  • 404 page

Each has its own template and its own variable set (author archives have {{author}}, search has {{searchQuery}}, etc.).


Live preview

As you edit a template, SEO Forge shows a live preview using a real post from your site. You can see exactly what the rendered title and description will look like before saving.


Character limit enforcement

Templates can produce titles and descriptions of varying lengths depending on the post they’re applied to. SEO Forge warns you when a template pattern would likely produce output exceeding Google’s limits (60 chars for title, 160 for description), so you can adjust before going live.


Auto-cleanup of empty variables

If a variable resolves to an empty string (e.g., {{tag}} on a post with no tags), SEO Forge automatically cleans up the template to avoid awkward output like “Post Title — — Site Name” (with a missing section). The cleanup handles separators, double spaces, and trailing punctuation.


Example template patterns

Blog post template

{{title}} — {{siteName}}

Produces: Best Caching Plugins — Example Site

WooCommerce product template

{{title}} | {{category}} | {{siteName}}

Produces: Blue Running Shoes | Footwear | Example Store

Category archive template

{{category}} Archives — Page {{page}} — {{siteName}}

Produces: SEO Tutorials Archives — Page 2 — Example Site

Evergreen content template

{{title}} ({{currentYear}} Updated) — {{siteName}}

Produces: WordPress SEO Guide (2026 Updated) — Example Site


Global default OG image

Alongside templates, SEO Forge lets you set a global default Open Graph image used as a fallback when a post doesn’t have a featured image. The cascade is:

  1. Post’s custom OG image
  2. Post’s featured image
  3. Global default OG image
  4. Empty (no OG image tag output)

This ensures every post has a social preview image without manual configuration.


Ready to set up SEO templates?

Get SEO Forge — from $39/year →

Title and meta description templates are included in every paid plan.

Forge AI Assistant Online

Hi! I'm the SEO Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs