Shortcode and block reference
Rilea SEO adds four editor blocks and seven shortcodes for FAQs, how-to steps, tables of contents, breadcrumbs and local business details. Here's every one, with its options and examples.
Rilea SEO docsVersion 1.1.03 min read
In short
- In the block editor, search for "Rilea" to find the FAQ, How-To, Table of Contents and Breadcrumbs blocks.
- Use shortcodes in the classic editor, widgets, page builders and theme files.
- The FAQ and How-To blocks add matching schema automatically.
- For breadcrumbs in a theme template, use the
rilea_breadcrumbs()template tag.
Blocks
Open the block inserter and search for "Rilea".
| Block | What it does |
|---|---|
| FAQ (Rilea) | Questions and answers, shown as an accessible list. Adds FAQPage schema to the page. |
| How-To (Rilea) | Numbered steps with an optional description, total time, cost, supplies and tools. Adds HowTo schema to the page. |
| Table of Contents (Rilea) | A linked list of the headings on the page. Choose heading levels, numbered or bulleted, and whether it starts collapsed. |
| Breadcrumbs (Rilea) | The breadcrumb trail for the current page. |
The table of contents adds an ID to each heading automatically, so the links work without any setup.
Shortcodes
Table of contents
| Option | Default | Description |
|---|---|---|
title | Table of Contents | The heading shown above the list. |
levels | 2,3 | Which heading levels to include, separated by commas. |
ordered | 0 | Set to 1 for a numbered list. |
collapse | 0 | Set to 1 to show it as a collapsible section that starts closed. |
Example:
FAQ
Answer one Answer two
Separate a question from its answer with a single pipe |, and separate one question-and-answer pair from the next with a double pipe ||. The shortcode also adds FAQPage schema. Answers in the shortcode are plain text; use the FAQ block if you need links in answers.
Breadcrumbs
Shows the breadcrumb trail for the current page, using the separator, home label and prefix from Settings, then Breadcrumbs. Breadcrumbs must be turned on in that tab.
Local business
| Shortcode | Shows |
|---|---|
| Name, address and phone |
| Opening hours |
| An embedded Google Map |
| Every location's details |
rilea_address], and accept an id to show a specific location, such as . Without an id, they show the main business from Settings, then Local SEO. See [setting up local SEO.
Template tag
To add breadcrumbs to a theme template, such as single.php, use:
<?php if ( function_exists( 'rilea_breadcrumbs' ) ) { rilea_breadcrumbs( '<nav class="breadcrumbs">', '</nav>' ); } ?>The function takes three arguments: HTML to print before the trail, HTML to print after it, and whether to echo the result (true by default) or return it. Wrapping the call in function_exists() keeps your theme working if the plugin is ever deactivated.
Schema from blocks
The FAQ and How-To blocks, and the shortcode, create schema from their content whenever they're on a page, whatever schema type the page uses. Because the schema comes from what's visible on the page, it always matches the content.
Google no longer shows FAQ rich results and retired HowTo rich results in 2023. These blocks are still useful for readers, and their schema still describes the page, but don't expect extra space in Google's results from them.
Styling
Each block and shortcode outputs simple HTML with classes you can style from your theme:
| Element | Class |
|---|---|
| Table of contents | .rilea-toc, with .rilea-toc-title for its heading |
| Map | .rilea-map |
| Locations list | .rilea-locations, with .rilea-location for each one |
Rilea SEO loads a small stylesheet only on pages that use its blocks or shortcodes, so it doesn't slow down other pages.
Still stuck? Check the support FAQ or get in touch, and we'll help.
Get helpNext guides
Set up local SEO
Rilea SEO describes your business to search engines with LocalBusiness schema, and helps you show your address, hours and map on your site.
Set up schema by content type
Rilea SEO builds a connected schema graph on every page.
Developer hooks and filters
Rilea SEO exposes filters for everything it prints: titles, descriptions, canonical URLs, robots directives, the schema graph and breadcrumbs.
Put your SEO budget somewhere else.
Install Rilea SEO, import your settings and keep every feature, for free.