• Resolved gaurav8112

    (@gaurav8112)


    The HTML response of the actual Web Story on wordpress is different than what is visible when received via REST API.

    It does not include content from plugins like yoast seo plugin, and also cannot see analytics mjs loaded.

    Is there a way to send the final HTML content via REST?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    That’s correct, the content post_content field in the REST API response does not match what you see when viewing the actual story, and there’s no way to make that work as it’s not meant to be used directly.

    What exactly are you trying to achieve? Maybe we can help you with that.

    Note that Yoast SEO offers its data in the REST API via separate fields.

    Thread Starter gaurav8112

    (@gaurav8112)

    I have an Angular PWA with SSR. I want to fetch the story html and display it outside angular.

    I have figured out that part.

    However need to generate the same html that the actual story has that includes everything from analytics to seo tags and structural data.

    If possible a nodejs version of the output_buffer class can help

    • This reply was modified 2 years, 8 months ago by gaurav8112.

    @gaurav8112 Just checking in here to see if you have found a solution to your query?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Generate Complete HTML content to send via REST API’ is closed to new replies.