Les balises shortcode pour Yoast SEO

Voici la liste des balises shortcode Yoast SEO pour optimiser et voir même personnalisé vos titres et descriptions sur vos sites WordPress.

Lorsque vous utilisez WordPress en mode avancé avec le plugin Advanced Custom Field, la balise shortcode %%cf_<custom-field-name>%%, vous sera très utile pour récupérer vos variables et créer des descriptions automatiques. Pour l’utiliser rien de plus simple, si votre champ ACF se nomme mavariableacf pour afficher cette valeur avec Yoast SEO, vous devez  ajouter à votre description %%cf_mavariableacf%%.

Les balises shortcode « basic »

%%date%% Replaced with the date of the post/page
%%title%% Replaced with the title of the post/page
%%parent_title%% Replaced with the title of the parent page of the current page
%%sitename%% The site’s name
%%sitedesc%% The site’s tagline / description
%%excerpt%% Replaced with the post/page excerpt (or auto-generated if it does not exist)
%%excerpt_only%% Replaced with the post/page excerpt (without auto-generation)
%%tag%% Replaced with the current tag/tags
%%category%% Replaced with the post categories (comma separated)
%%primary_category%% Replaced with the primary category of the post/page
%%category_description%% Replaced with the category description
%%tag_description%% Replaced with the tag description
%%term_description%% Replaced with the term description
%%term_title%% Replaced with the term name
%%searchphrase%% Replaced with the current search phrase
%%sep%% The separator defined in your theme’s wp_title() tag.

Les balises shortcode « avancé »

%%pt_single%% Replaced with the post type single label
%%pt_plural%% Replaced with the post type plural label
%%modified%% Replaced with the post/page modified time
%%id%% Replaced with the post/page ID
%%name%% Replaced with the post/page author’s ‘nicename’
%%userid%% Replaced with the post/page author’s userid
%%currenttime%% Replaced with the current time
%%currentdate%% Replaced with the current date
%%currentday%% Replaced with the current day
%%currentmonth%% Replaced with the current month
%%currentyear%% Replaced with the current year
%%page%% Replaced with the current page number
%%pagetotal%% Replaced with the current page total
%%pagenumber%% Replaced with the current page number
%%caption%% Attachment caption
%%focuskw%% Replaced with the posts focus keyword
%%term404%% Replaced with the slug which caused the 404
%%cf_<custom-field-name>%% Replaced with a posts custom field value. Be sure to remove the <> as they are not needed.
%%ct_<custom-tax-name>%% Replaced with a posts custom taxonomies, comma separated. Be sure to remove the <> as they are not needed.
%%ct_desc_<custom-tax-name>%% Replaced with a custom taxonomies description. Be sure to remove the <> as they are not needed.

Les balises shortcode « Woocommerce »

%%ct_product_cat%% Product category (comma separated)
%%ct_product_tag%% Product tag (comma separated)
%%ct_pa_<product-attribute-slug>%% Product attribute (comma separated). Be sure to remove the <> as they are not needed.
%%excerpt%% Product short description
%%cf__sku%% SKU
%%ct_product_brand%% Brand (using WooCommerce Brands add-on)