Title Tag Filter

Example 1 — Include a Prefix

Adds prefix text to all single post <title> tags.

Example 2 — Include a Suffix

Adds suffix text to all single page <title> tags.

Example 3 — Append Primary Category

Appends the primary category name to all single post <title> tags.

Example 4 — 404 Page

Replaces the text of the <title> tag on 404 page.

Example 5 — Use wp_title

Uses wp_title to generate the <title> tag.

Example 6 — Character Separator

Accesses the default character separator (from Site Options > Document Head > Title Tag Settings).

Example 7 — No Site Name

Eliminates the appended site name (as enabled under Site Options > Document Head > Title Tag Settings) on all single pages.

Example 8 — No Site Name, Custom Title

Eliminates the appended site name (as enabled under Site Options > Document Head > Title Tag Settings) on all single pages where a custom title has been specified (under Edit Post > SEO Details > Custom Title Tag).

Example 9 — Reverse Order

Reverses the order of the site name and page title on all single pages (except a static front page).

Example 10 — Remove Page N

Removes the Page N reference on which is appended to paged pages.

Example 11 — Capitalize Tag Names

Capitalizes the tag names on all tag archive pages.

Reference