Yoast Variablen

Basic Variables
%%title%%
Inserts the title of the post/page.

%%sitename%%
Inserts the site name as defined in the WordPress settings.

%%sitedesc%%
Inserts the site tagline or description as defined in the WordPress settings.

%%excerpt%%
Inserts the post/page excerpt or pulls the first few words of the content if no excerpt is set.

%%excerpt_only%%
Inserts only the post/page excerpt, without falling back to the content.

%%date%%
Inserts the date of the post/page.

%%id%%
Inserts the post/page ID.

%%name%%
Inserts the author’s name.

%%userid%%
Inserts the user ID of the post/page author.

%%category%%
Inserts the primary category of the post or, if not set, the first category.

%%category_description%%
Inserts the description of the category.

%%tag%%
Inserts the post tags.

%%tag_description%%
Inserts the description of the tag.

%%term_description%%
Inserts the description of the taxonomy term.

%%term_title%%
Inserts the title of the taxonomy term.

%%searchphrase%%
Inserts the search phrase used in search results.

%%page%%
Inserts the current page number if the post/page is paginated.

%%pagetotal%%
Inserts the total number of pages if the post/page is paginated.

%%pagenumber%%
Inserts the current page number in paginated content.

%%sep%%
Inserts the separator as defined in the Yoast SEO settings (e.g., ” – ” or ” | “).

Advanced Variables
%%parent_title%%
Inserts the title of the parent page or post.

%%parent_page%%
Inserts the number of the parent page.

%%focuskw%%
Inserts the focus keyphrase for the post/page.

%%cf_%%
Inserts the value of a custom field. Replace with the name of your custom field.

%%ct_%%
Inserts a custom taxonomy. Replace with the name of your custom taxonomy.

%%pt_single%%
Inserts the singular name of the post type.

%%pt_plural%%
Inserts the plural name of the post type.

%%modified%%
Inserts the date the post/page was last modified.

%%attachment%%
Inserts the attachment name.

%%filename%%
Inserts the file name of the attachment.

%%primary_category%%
Inserts the primary category of the post, if set in Yoast SEO.

%%category_title%%
Inserts the title of the category.

Special Variables
%%currenttime%%
Inserts the current time.

%%currentdate%%
Inserts the current date.

%%currentmonth%%
Inserts the current month number (e.g., 08 for August).

%%currentmonthname%%
Inserts the current month name (e.g., August).

%%currentyear%%
Inserts the current year (e.g., 2024).

%%currentday%%
Inserts the current day of the month (e.g., 20).

%%request%%
Inserts the requested URL.

%%cf_%%
Inserts the content of a custom field (same as the advanced variable).

%%ct_%%
Inserts a custom taxonomy term (same as the advanced variable).

%%pt_single%%
Inserts the name of the post type (same as the advanced variable).

%%term404%%
Inserts the term that was requested on a 404 page.

Deprecated Variables
These variables are still available but are considered deprecated and may not be supported in future versions:

%%date%%
Inserts the date of the post/page.

%%modified%%
Inserts the date the post/page was last modified.

%%currentmonthname%%
Inserts the current month name (e.g., January).

%%currentday%%
Inserts the current day of the month.