Hi,
Thanks for the above.
Two questions.
First:
I have added the following custom fields:
add_filter('site-reviews/config/forms/review-form', function ($config) {
$config['design'] = [
'label' => __('Select a design rating for the service', 'your_theme_domain'),
'required' => true,
'type' => 'rating',
];
$config['ease'] = [
'label' => __('Select a ease of use rating for the service', 'your_theme_domain'),
'required' => true,
'type' => 'rating',
];
$config['price'] = [
'label' => __('Select a price rating for the service', 'your_theme_domain'),
'required' => true,
'type' => 'rating',
];
$config['features'] = [
'label' => __('Select a features rating for the service', 'your_theme_domain'),
'required' => true,
'type' => 'rating',
];
$config['feedback'] = [
'label' => __('Select a feedback rating for the service', 'your_theme_domain'),
'required' => true,
'type' => 'rating',
];
$config['testings'] = [
'label' => __('Test stuff', 'your_theme_domain'),
'required' => true,
'type' => 'textarea',
];
return $config;
});
If I now wanted to access these to show in the reviews-summary, what would I add to the shortcode to show them? Would it be, for instance:
[site_reviews_summary class="rating-bar" rating_field="design" assigned_posts="12"]
With the above example, I can’t figure out how to actually show the additional custom fields (design, ease, price, features, feedback)
Second:
If I was instead to create a custom shortcode with the example give here: https://pastebin.com/MCDxctJ5
How would I access the overall rating of the custom fields, such as (design, ease, price, features, feedback)
If there isn’t a way to access the overall rating, is there a way to get an array of all the ratings for the above?
Lastly, could you share a link for your documentation please. I’ve had a look but found it difficult to find, and it may be helpful in figuring out a solution ??
Thanks for all your help in advance.
-
This reply was modified 3 years, 4 months ago by parvy.
-
This reply was modified 3 years, 4 months ago by parvy.
-
This reply was modified 3 years, 4 months ago by parvy.
-
This reply was modified 3 years, 4 months ago by parvy.
-
This reply was modified 3 years, 4 months ago by parvy.