Categories on form
-
You have a section where we can set up categories but these do not show on the review form. Is there any way to have them show?
-
The Site Reviews categories were not intended to be public, but simply a way to organise your submitted reviews.
Just as you can use “assign_to” on the [site_reviews_form] to automatically assign a review to post, you can do the same with “category” to automatically assign a review to a Site Reviews category.
You can then use the “category” option on the [site_reviews] shortcode to only display reviews that have been assigned to that category (similar to “assigned_to”).
If you need to allow users to choose a category when submitting a review, this can only be done by using a custom submission form in your theme.
IMPORTANT: This method will NOT work in Site Reviews v3 which will be released in the next few weeks!
How to customise the Submission Form fields in Site Reviews version 2:
1. Create a custom form: https://github.com/geminilabs/site-reviews/wiki/Custom-Submission-Form-Field-Order
2. Once you have created the custom form, replace the hidden category field:
echo $html->renderField([ 'type' => 'hidden', 'name' => 'category', 'prefix' => false, 'value' => $category, ]);With this:
// Category field echo $html->renderField([ 'label' => __( 'Category', 'site-reviews' ), 'name' => 'category', 'options' => ['' => __( 'Select a category', 'site-reviews' )] + $db->getTerms(), 'prefix' => false, 'required' => true, 'type' => 'select', 'value' => $category, ]);-
This reply was modified 7 years, 10 months ago by
Gemini Labs.
-
This reply was modified 7 years, 10 months ago by
Gemini Labs.
-
This reply was modified 7 years, 10 months ago by
Gemini Labs.
Using the assign category is not a good solution, at least for us.
There should be a drop down where the review submitter can select a category, it would also be nice if we could add more star selections that just the one already offered.
Right now there are 5 stars to choose from it would be nice if we can add our own.
This website has the style I have been searching for for a long time: whtop.com
At the review section make sure to Toggle from basic to advance form.Your plugin is close to this, you might want to consider creating a way to give the user more control over the submit form without having to adding/adjust coding.
Thanks for the feedback.
I will consider having the category dropdown as an option in v3.0.
The star selections feature you have described is on the roadmap to released as an add-on. However, I cannot tell you when development will start on it as I do not know. Probably sometime after v3.0 has been released along with the Tripadvisor add-on.
-
This reply was modified 7 years, 10 months ago by
Gemini Labs.
-
This reply was modified 7 years, 10 months ago by
Gemini Labs.
-
This reply was modified 7 years, 10 months ago by
The topic ‘Categories on form’ is closed to new replies.