• Resolved James DiGioia

    (@jamesdigioia)


    I was looking at WP REST Yoast Meta to get the JSON-LD data for each post for a headless site I’m building. However, the plugin overwrites the yoast_meta key provided by the Yoast plugin REST API integration upstream. Is there any way to maintain the current Yoast meta while adding the JSON-LD data?

    Also, the yoast_json_ld field in my setup outputs an array of 9 values. Further examination confirms that all 9 are the same. Is this expected/intentional? What’s the cause?

    I’m testing this locally but could deploy if you needed to see an example.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @jamesdigioia

    Thank you for using our plugin!

    I’m sorry but I am having trouble understanding your first question. You refer to another plugin:

    the plugin overwrites the yoast_meta key provided by the Yoast plugin REST API integration upstream

    Which plugin is that? If we know which plugin it is, we might have a look at it and see if we can prevent any issues between the plugins (no guarantee until we see the plugin ?? )

    About the yoast_json_ld this is indeed a bug, which we are investigating and we are hoping to release a fix soon.

    Thread Starter James DiGioia

    (@jamesdigioia)

    My apologies–I thought Yoast itself added this data but I forgot I added this plugin: https://github.com/niels-garve/yoast-to-rest-api

    Plugin Author Richard Korthuis

    (@rockfire)

    @jamesdigioia

    Thank you, may I ask why you are using this plugin for the Yoast Meta and not the meta provided by our plugin? Just curious to know if there is something you are missing or would like different in our plugin.

    For your information: We by the way did investigate this plugin prior to deciding to build our own. We did this for two reasons:
    1. It hasn’t been maintained for quite some time.
    2. It retrieves only very limited Yoast Meta, so not all meta generated by the Yoast SEO plugin.

    I have some ideas about how we can help you run both plugins next to each other, but I will have to discuss this internally first.

    Thread Starter James DiGioia

    (@jamesdigioia)

    Honestly, I may not run both. I added that one at the time cuz it was the first one I found. I then started to look for something to add the JSON-LD and found this plugin. If this is more actively maintained, I might just switch but will need to look into it more.

    Thread Starter James DiGioia

    (@jamesdigioia)

    Yeah, ignore the request to make them run side by side. I’m going to go with this one, cuz it’ll be easier to integrate into the FE.

    On the JSON-LD side, it would be awesome if we could get that as just an object rather than an array with several nested. Don’t know if there is a reason it’s an array, as I believe it should only be output once, but I could be wrong about that.

    Will close this for now. I do have another suggestion I will open another thread for.

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @jamesdigioia

    The reason the JSON-LD is an array is because it is possible to have multiple JSON-LD’s on one page, see: https://webmasters.stackexchange.com/questions/96903/can-i-have-multiple-json-ld-scripts-in-the-same-page

    I have found a fix for the duplicate outputs for the JSON-LD and will release it as soon as possible (it needs to be reviewed by a colleague first).

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @jamesdigioia

    We just released a new version of our plugin which solves the duplicate outputs for the JSON-LD.

    Thread Starter James DiGioia

    (@jamesdigioia)

    This is fixed too. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Clobbers yoast_meta provided by plugin upstream’ is closed to new replies.