How to use SEO Title for Automatically Generated Videos Schema

#806016
  • Resolved Osafo Daniel
    Rank Math free

    hello team trust you well… I want to use SEO title for Automatic Generated Videos Schema in posts instead of the YouTube title.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you so much for getting in touch.

    This feature you mentioned is a PRO feature but you seem to be using a free account. If you have a PRO subscription, can you please share the email address you used to purchase that plan?

    Back to your issue, you’ll have to use %seo_title% as the headline for your video schema in the schema editor:

    Rank Math support

    If you wish to do it globally, you can use this filter code:

    add_filter( 'rank_math/snippet/rich_snippet_videoobject_entity', function( $entity ) {
    	$entity['name'] = RankMath\Helper::replace_vars('%seo_title%');
    	$entity['headline'] = RankMath\Helper::replace_vars('%seo_title%');
    	return $entity;
    } );

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Worked!!! .. Thanks So Much 🙂

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘How to use SEO Title for Automatically Generated Videos Schema’ is closed to new replies.