Skip to content

Replace Variables Reference

Replace variables let you insert dynamic content into SEO titles, descriptions, and other fields using simple placeholders. Use them in title templates, description templates, image SEO formats, and anywhere else the variable picker appears.

Variables use the %variable% format:

  • Basic: %sitename%, %title%, %sep%
  • With arguments: %date(F jS, Y)%, %customfield(field_name)%

The variable picker in the post editor and settings pages shows all available variables with descriptions and examples.

Separator character as configured in settings (default: -).

Example: My Post %sep% Site NameMy Post - Site Name

Site title from Settings > General.

Example: %title% %sep% %sitename%My Post - My Site

Site tagline from Settings > General.

Example: %sitedesc%Just another WordPress site

Current server date in the format configured in Settings > General.

Example: Published on %currentdate%Published on January 15, 2025

Current day of the month (numeric).

Example: %currentday%15

Current month name.

Example: %currentmonth%January

Current year.

Example: Copyright %currentyear%Copyright 2025

Current server time in the format configured in Settings > General.

Example: Updated at %currenttime%Updated at 3:45 PM

Current time with custom format (uses PHP date format).

Example: %currenttime(F jS, Y)%January 15th, 2025

Search query text (only available on search results pages).

Example: Results for: %search_query%Results for: wordpress seo

Post or page title.

Example: %title% %sep% %sitename%My Post - My Site

Parent page title (for hierarchical post types).

Example: %parent_title% %sep% %title%Parent Page - Child Page

Post excerpt, auto-generated from content if missing.

Example: %excerpt%This is a brief summary of the post content...

Post excerpt without auto-generation (returns empty if no manual excerpt).

Example: %excerpt_only% → Returns empty if no manual excerpt exists

Custom SEO title from meta box, or the post title if not set.

Example: %seo_title% → Uses your custom SEO title

Custom SEO description from meta box, or excerpt if not set.

Example: %seo_description% → Uses your custom SEO description

Permalink URL of the current post or page.

Example: Read more: %url%Read more: https://example.com/my-post

Featured image URL of the current post.

Example: Image: %post_thumbnail%Image: https://example.com/wp-content/uploads/image.jpg

Publication date of the current post.

Example: Published %date%Published January 15, 2025

Last modification date of the current post.

Example: Updated %modified%Updated January 20, 2025

Publication date with custom format (uses PHP date format).

Example: %date(F jS, Y)%January 15th, 2025

Modification date with custom format.

Example: %modified(F jS, Y)%January 20th, 2025

First category assigned to the post.

Example: %category% %sep% %title%Technology - My Post

Comma-separated list of all categories.

Example: Categories: %categories%Categories: Technology, News, Updates

First tag assigned to the post.

Example: Tagged: %tag%Tagged: wordpress

Comma-separated list of all tags.

Example: Tags: %tags%Tags: wordpress, seo, tutorial

Current term name (category, tag, or custom taxonomy).

Example: %term% ArchiveTechnology Archive

Current term description.

Example: %term_description%Posts about technology and web development

Custom term value from a specific taxonomy.

Example: %customterm(product_category)% → Returns the product category term

Custom term description from a specific taxonomy.

Example: %customterm_desc(product_category)% → Returns the product category description

Author user ID of the current post or author archive.

Example: Author ID: %userid%Author ID: 42

Display name of the current post author.

Example: By %name%By John Doe

Biographical info of the current post author.

Example: %user_description%John is a WordPress developer...

Post or page ID.

Example: Post #%id%Post #123

Focus keyword of the current post.

Example: Keyword: %focuskw%Keyword: wordpress seo

All focus keywords of the current post (comma-separated).

Example: Keywords: %keywords%Keywords: wordpress, seo, plugin

Value of a custom field by field name.

Example: %customfield(price)% → Returns the value of the price custom field

Page number with context (e.g., “Page 2 of 4”). Only appears on page 2+.

Example: %title% %page%My Post - Page 2 of 4

Current page number.

Example: Page %pagenumber%Page 2

Total number of pages.

Example: of %pagetotal%of 4

Singular name of the current post type.

Example: %pt_single% ArchivePost Archive or Product Archive

Plural name of the current post type.

Example: Latest %pt_plural%Latest Posts or Latest Products

Image filename without extension (used in Image SEO alt format).

Example: %filename%my-image

Go to SEOvault AI > General > Templates to set default title templates for posts, pages, and other post types.

Example template: %title% %sep% %sitename%

Set default description templates in the Templates tab.

Example template: %excerpt% %sep% %sitename%

Configure automatic alt text generation in the Image SEO tab.

Example format: %filename% %sep% %sitename%

Use the variable picker in the SEO meta box to insert variables into custom titles and descriptions.

Use variables in category and tag SEO titles and descriptions.

Developers can register custom variables using the seovaultseo/vars/register_extra action hook. This allows for site-specific variables like custom post type data, plugin-specific values, or any other dynamic content.