• Hey!

    i’am working with your Plugin and i guess i found a bug within the wp_headless_gutenberg_data rest field.

    Same block-data gets overwritten. For example with two core/paragraph blocks. only the last inserted Paragraph is reaching the endpoint ??

    I took a quick look into the code and found on line 182 (class-wp-headless-rest-gutenberg-blocks) $response_data – same blockName?

    Greetings ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ben.moody

    (@benmoody)

    Hi @jabbadu

    Thanks for the heads up, i’ll look into it this week and put out an update!

    Thread Starter jabbadu

    (@jabbadu)

    After looking into the code for a few minutes, I came to the conclusion that it is not possible. You can’t have the same keys twice in an array.

    You have to add an individual counter ($i) to include all data in the array. This of course destroys the clean structure… If you have a better idea, I’ll look forward to it! ??

    I have set up a Sandbox here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gutenberg REST data’ is closed to new replies.