Question about custom post fields

[ad_1]

I have a headless WordPress CMS setup with React generating the front end. I am pulling across all posts from WordPress using the RESTful API.

I would like to add Like/Dislike functionality to my posts, so visitors to my website can see my posts and react to them. I haven’t been able to find any documentation on achieving this as I’m not sure of how it should be worded.

Does anyone have a link to some documentation or a tutorial on how to add a Like/Dislike field to the post data, which I can then access from the front end both to display the number of likes and also to change the number of likes when someone gives feedback? TIA!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer