• rickmastry

    (@rickmastry)


    I am using wp_insert_post to take in form data of name and brief review on the front end. And that works no problem. Both of those data show up in the post. But I also have 5 stars that can be highlighted as part of the review. The stars highlight when clicked but when the post is published the highlighted stars do not show up. The stars show up but they are in the unchecked state and thus are not in the yellow state that I want. So the question is how do I save the state of the highlighted stars? Do I save the checked state of the input? do I save the values in a custom field? If so how do I do that? I do not want to use a 5 star plugin. As I am so close to doing it the way that I want. At this point only the first star highlights but it only highlights to the last post. Any help will be appreciated. Even a point in the right direction will be much obliged. The website is on my localhost so do not have a link yet to show.

Viewing 1 replies (of 1 total)
  • Thread Starter rickmastry

    (@rickmastry)

    So update I got custom fields for the star value to be stored. And I can echo out the value of the checked box and get the colors to show. But I can only get it to reflect the last post. And I still cannot store the value of the radio button into the custom fields. I have to check them from the dashboard for them to work. So still a few things to figure out. Any help will be appreciated. thanks in advance

Viewing 1 replies (of 1 total)
  • The topic ‘saving checkbox values to display stars’ is closed to new replies.