Using Helpful Widget in a Headless WordPress setup
-
Hi there, thanks for the work put into the plugin!
I was wondering if the below is possible, please:
I have a client who uses a headless WordPress installation to manage the blog posts on their React App. They fetch the post content via WordPress’ API, with some new fields added to the JSON payload (Metadata, linked YouTube videos, etc – all managed within the WP CMS).We need users of the React app to mark an article as helpful/not helpful and then have that data reflect back to the CMS.
We’ve been able to include the markup, styling and the JS (via includes) of the Helpful widget in our post content that gets pulled through to the React app (it gets compiled to an asset.js file that is then loaded by the React app), and we’ve been able to pull the pro/contra counts in the JSON output.
However, upon clicking on the pro/contra buttons on the react app, the widget doesn’t do anything – the “thank you” text doesn’t display and the post’s pro/contra counts don’t get updated on the WordPress CMS.
Do you have any insight for how we may incorporate this plugin on a React app via a WordPress headless install?
Thanks!
- The topic ‘Using Helpful Widget in a Headless WordPress setup’ is closed to new replies.