Hello,
I apologize for any confusion. To add the article body to the schema using Rank Math, you can follow these steps:
- In the Classic Editor of WordPress, scroll down to the bottom of the page where you will see the Rank Math Metabox.
- If you cannot see the Rank Math Metabox, click on Screen Options and select Rank Math SEO from the Screen elements.
- Choose the Schema tab in the Rank Math Metabox.
- Within the Schema tab, you can find options to add various schema details, but adding the article body directly to the schema is not a feature provided by Rank Math.
If you have any further questions or need assistance, please feel free to reach out. Thank you for your understanding.
Sources:
Configuring “Schema Markup” in Rank Math » Rank Math
Person Schema Type » Rank Math
How to Add Supply, Tools, and Material Fields to HowTo Schema » Rank Math
Hello,
You can add the property articleBody with the entire body/content of the article by using the following filter:
add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
$entity['articleBody'] = wp_strip_all_tags(get_the_content());
return $entity;
});
Here’s how you can add filters/hooks to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Looking forward to helping you.
Hello,
Glad that helped.
If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.
Looking forward to helping you.