Movie Schema Type

#46799
  • Resolved Arabsciences
    Rank Math free

    Hi
    I would like to add Movie Schema Type.
    I saw that Michael Davis wrote something about, but I could not find where to paste the code?

    I am afraid that the movie schema is not available in the plugin. You can however use an online generator to generate the schema and then add it to your pages using the following filter:

    /**
     * Collect data to output in JSON-LD.
     *
     * @param array  $unsigned An array of data to output in json-ld.
     * @param JsonLD $unsigned JsonLD instance.
     */
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return [];
    }, 10, 2);
    • This topic was modified 4 years, 10 months ago by Arabsciences. Reason: edit
Viewing 1 replies (of 1 total)
  • Todd
    Rank Math free

    Hi,

    We assume that you know a bit of coding when using the method we have suggested.

    That code need to go into your theme’s functions.php but just pasting it will not do the trick.

    I suggest you use this tool to generate the Schema on a per post basis:
    https://technicalseo.com/tools/schema-markup-generator/

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

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Movie Schema Type’ is closed to new replies.