• Resolved jnasoy

    (@jnasoy)


    Hello, I would like to have rating form per category with a single submit button for all the form. What is the best approach for this.

    My current setup looks like this

    
    <?php echo do_shortcode('[site_reviews_form assign_to="post_id" category="quality service sustainability" hide="content,email,name,terms,title" schema="true" ]')?>
    <?php echo do_shortcode('[site_reviews_form assign_to="post_id" category="service" hide="content,email,name,terms,title" schema="true" ]')?>
    <?php echo do_shortcode('[site_reviews_form assign_to="post_id" category="sustainability" hide="content,email,name,terms,title" schema="true" ]')?>

    This is what i would like to achieve
    https://ibb.co/p17yGpJ

    Thank you

    • This topic was modified 4 years ago by jnasoy.
    • This topic was modified 4 years ago by jnasoy.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Thread Starter jnasoy

    (@jnasoy)

    Thank you for your response.
    I’ve checked the link you’ve provided and its so cool that we could do more customization to the rating form,

    One question, is there a way I can programmatically assigned the submitted valued of a custom field to a certain rating category?

    Thanks

    Plugin Author Gemini Labs

    (@geminilabs)

    As shown in the pastebin link provided in the link above, you can use the site-reviews/review/created action hook to do that.

    See also the glsr_log helper function on the Site Reviews > Help Functions page.

    Thread Starter jnasoy

    (@jnasoy)

    Thanks for your response.
    Thats a handly hook but can you guide mo through what should my logic block looks like? Like how can i get star rating input value and save in a specific category. Sorry im new in wordpress, can you show me how the code block looks like?

    Thank you so much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rating Form per Category with One Submit Button’ is closed to new replies.