Basically I am trying to setup a 5 star rating system for users to rate the job of the work provided by the service. I am using wp_insert_post to grab the name and description from the front end. That works perfect. I am not sure of how to store the checked value of the radio buttons that I am using to display the color of the stars. I can select my stars in the html form and they change to yellow no problem but of course when they load into wordpress and it displays as a post it just displays grey as the color because that is the initial color set in css. I did try to set an advanced custom field to checked:checked and pull from that to change the color but still no go and I may just be doing it wrong. If that is the correct way let me know. Here is a how I tried that. The rate-1 inputs are for the html form the rate-1-output is for the display of the stars after submitting post.
Here is a picture as well
Let me know what other code if any that you guys need. Thank you in advance for your time and patience for helping me with this. I never tried this before so is a first time and do not want to use a plugin especially since I am so close.
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com