Create your custom schema in JSON-LD with SEOPress PRO

Since SEOPress 3.6.2

In the same way as to mark your content with a schema, when selecting the schema type, choose “custom“.

A textarea appears allowing you to enter / paste your custom schema.

You can use all these dynamic variables in your code:

  • %%sep%% -> Separator
  • %%sitetitle%% -> Site Title (alias: %%sitename%%)
  • %%tagline%% -> Tagline
  • %%post_title%% -> Post Title (post, page, custom post type, alias: %%title%%)
  • %%post_excerpt%% -> Post excerpt
  • %%post_date%% -> Post date
  • %%post_author%% -> Post author
  • %%post_category%% -> Post category
  • %%post_tag%% -> Post tag
  • %%_category_title%% -> Category title
  • %%_category_description%% -> Category description
  • %%tag_title%% -> Tag title
  • %%tag_description%% -> Tag description
  • %%term_title%% -> Term title
  • %%term_description%% -> Term description
  • %%search_keywords%% -> Search keywords
  • %%current_pagination%% -> Current number page
  • %%cpt_plural%% -> Plural Post Type Archive name
  • %%archive_title%% -> Archive title
  • %%archive_date%% -> Archive date (month, year or month + year)
  • %%archive_date_day%% -> Day Archive date
  • %%archive_date_month%% -> Month Archive title
  • %%archive_date_year%% -> Year Archive title
  • %%_cf_your_custom_field_name%% -> Custom fields from post, page or post type (replace your_custom_field_name by the name of your custom field)
  • %%_ct_your_custom_taxonomy_slug%% -> Custom term taxonomy from post, page or post type (replace your_custom_taxonomy_slug by the slug of your custom taxonomy, eg: product_cat)
  • %%wc_single_cat%% -> Single product category
  • %%wc_single_tag%% -> Single product tag
  • %%wc_single_short_desc%% -> Single product short description
  • %%wc_single_price%% -> Single product price
  • %%wc_single_price_exc_tax%% -> Single product price taxes excluded
  • %%wc_sku%% -> Single SKU product
  • %%currentday%% -> Current day
  • %%currentmonth%% -> Current month
  • %%currentyear%% -> Current year
  • %%currentdate%% -> Current date
  • %%currenttime%% -> Current time
  • %%author_bio%% -> Author biography

You can add your own custom global variables by using this hook.

Make sure to test your schema once your post is published to avoid any errors.

The custom schema is available as manual or automatic from SEO > Schemas.

Where to find schemas?

Last modified: August 21, 2019

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...