Shortcodes can be included in the theme body file, but in WordPress official themes, it is not recommended to include shortcodes and SEO functions in the theme body.
Therefore, it is prepared separately as a plug-in.
“FullSite-Patterner” uses shortcodes for breadcrumbs
Breadcrumbs are realized by breadcrumb.php of plug-in “FullSite-Patterner-seo” .
We also have a block pattern (breadcrumb-with-plugin) with the following shortcode in advance .
Shortcode.php of the plug-in “FullSite-Patterner-seo” reads the PHP file with the shortcode .
A short code that is convenient for site management is also set
In shortcode.php , the following shortcodes are also set so that they can be used freely.
|short code||Settings||Example of use|
|homeurl||Site top page URL||https://full-site-patterner.com/en/category|
|imgurl||assets/img directory in theme folder||https://full-site-patterner.com/en/wp-content/themes/fullsite-patterner /assets/images /image001.jpg|
|bloginfo_name||Site (blog) name||©FullSite-Patterner – WordPress block theme with full site editing All rights reserved.|