A
A
Alexey2021-10-06 12:11:18
WordPress
Alexey, 2021-10-06 12:11:18

How to add a poll function "Was the article helpful?" in wordpress?

Good day!
Can you please tell me how to make a "Was this article helpful?" widget with two "Yes and No" buttons at the end of each wordpress post?
615d68099d5d8928487188.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan K, 2021-10-06
@ikonkov

Well, if you write a bike yourself, then you need to create a table in the database for this, with the fields Rating ID, Post ID, and two fields for yes / no counters. Next, write PHP code that will interact with this table by querying and updating the counters. Well, front JS + AJAX so that the buttons work and send a new value to the counter. In a few hours, you can implement such a shnyag and wrap everything in a plugin.
Well, or find a ready-made plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question