Citation

#27574
  • Resolved Docteur Fitness
    Rank Math pro

    Hello,

    I would like to know if, if there is a possibility to add citation in json-ld

    I have a plugin, footnotes (https://wordpress.org/plugins/footnotes/), that put citation at the bottom of the article, with the shortcode [ref] … [/ref]

    Is it possible to retrieve these quotes and put them in the json-ld of ranksmath?

    Thanks you !

    screen

Viewing 5 replies - 1 through 5 (of 5 total)
  • looking for this too,
    there is another discussion here, but no solution :
    https://support.rankmath.com/ticket/citation-schema/

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    To be able to add the citation schema, you can make use of the following filter to extend the JSON-LD data from Rank Math:

    /**
     * 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);

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thanks for trying to help me.

    I’m such a noob.. I understand that I have to change “blogpost” to “Article”. But I don’t know how to do to add citations…

    can you help me to add json-ld citations for this post : https://forum-cetogene.com/beta/2020/01/17/test-footnotes/

    with Sensitive Data

    Todd
    Rank Math free

    We are so sorry but there is no UI option for this.

    If you are familiar with coding, you can use the filter we offered above.

    Otherwise, you can continue using your citation plugin along with Rank Math.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Citation’ is closed to new replies.