The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
what is required fo...
 
Share:
Notifications
Clear all

Question [Solved] what is required for recipe ratings to now appear on Google?

12 Posts
2 Users
0 Reactions
860 Views
Posts: 7
Topic starter
(@luchitoallison)
Active Member
Joined: 2 years ago

I was provided this fix regarding my website's issue but have been advised that this has not been successful in resolving the issue, is there another fix?

11 Replies
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Please provide the code you've used. 

Posts: 7
Topic starter
(@luchitoallison)
Active Member
Joined: 2 years ago
We are using the recipe schema with your fix.
 
It works for everything apart from the average rating part. What else can be done to resolve the average rating issue?
 
5 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

For further support, we need to see the exact code that you've added. 

(@luchitoallison)
Joined: 2 years ago

Active Member
Posts: 7

@asti

as I understand in speaking with our website developers, this code was supplied by you and worked for a long time but stopped working a few months ago. Here's the code:

add_filter('wpdiscuz_rating_schema', function ( $rating_schema, $key, $postid ){
    $my_rating_schema = 'Recipe';
    $rating_schema = str_replace(__('Article Rating', 'wpdiscuz'), $my_rating_schema . ' Rating', $rating_schema);
    return preg_replace( '|schema\.org\/Product|i', ' http://schema.org  /'&source=gmail&ust=1687333181598000&usg=AOvVaw0VLzvJlxPyynPEDTBqXq3o">schema.org/' . sanitize_text_field($my_rating_schema) , $rating_schema);
},11, 3);
 
 
Thank you for your help in resolving our issue. Allison
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@luchitoallison,

Please provide us the direct URLs where we can see the issue. 

(@luchitoallison)
Joined: 2 years ago

Active Member
Posts: 7

@asti these are the URLs that Google Search Console has flagged as having average ratings issues:

URL
https://gran.luchito.com/recipes/sides/frijoles/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/frijoles/"> https://gran.luchito.com/recipes/sides/frijoles/
https://gran.luchito.com/recipes/breakfast/avocado-toast/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/breakfast/avocado-toast/"> https://gran.luchito.com/recipes/breakfast/avocado-toast/
https://gran.luchito.com/recipes/breakfast/chilaquiles/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/breakfast/chilaquiles/"> https://gran.luchito.com/recipes/breakfast/chilaquiles/
https://gran.luchito.com/recipes/fajitas/vegetarian-fajitas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/fajitas/vegetarian-fajitas/"> https://gran.luchito.com/recipes/fajitas/vegetarian-fajitas/
https://gran.luchito.com/recipes/enchiladas/chicken-enchiladas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/enchiladas/chicken-enchiladas/"> https://gran.luchito.com/recipes/enchiladas/chicken-enchiladas/
https://gran.luchito.com/recipes/sides/mexican-corn/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/mexican-corn/"> https://gran.luchito.com/recipes/sides/mexican-corn/
https://gran.luchito.com/recipes/nachos/pulled-pork-nachos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/nachos/pulled-pork-nachos/"> https://gran.luchito.com/recipes/nachos/pulled-pork-nachos/
https://gran.luchito.com/recipes/tacos/vampiro-taco/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/vampiro-taco/"> https://gran.luchito.com/recipes/tacos/vampiro-taco/
https://gran.luchito.com/recipes/family-favourites/easy-butter-chicken-curry/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/easy-butter-chicken-curry/"> https://gran.luchito.com/recipes/family-favourites/easy-butter-chicken-curry/
https://gran.luchito.com/recipes/traditional-mexican/mexican-roast-chicken/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/traditional-mexican/mexican-roast-chicken/"> https://gran.luchito.com/recipes/traditional-mexican/mexican-roast-chicken/
https://gran.luchito.com/recipes/tacos/salmon-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/salmon-tacos/"> https://gran.luchito.com/recipes/tacos/salmon-tacos/
https://gran.luchito.com/recipes/burritos/beef-burrito/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/burritos/beef-burrito/"> https://gran.luchito.com/recipes/burritos/beef-burrito/
https://gran.luchito.com/recipes/family-favourites/chicken-traybake/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/chicken-traybake/"> https://gran.luchito.com/recipes/family-favourites/chicken-traybake/
https://gran.luchito.com/recipes/family-favourites/mexican-shepherds-pie/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/mexican-shepherds-pie/"> https://gran.luchito.com/recipes/family-favourites/mexican-shepherds-pie/
https://gran.luchito.com/recipes/tacos/pork-belly-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/pork-belly-tacos/"> https://gran.luchito.com/recipes/tacos/pork-belly-tacos/
https://gran.luchito.com/recipes/family-favourites/sticky-pork-belly/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/sticky-pork-belly/"> https://gran.luchito.com/recipes/family-favourites/sticky-pork-belly/
https://gran.luchito.com/recipes/tacos/vegan-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/vegan-tacos/"> https://gran.luchito.com/recipes/tacos/vegan-tacos/
https://gran.luchito.com/recipes/tex-mex/cheese-stuffed-meatballs/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tex-mex/cheese-stuffed-meatballs/"> https://gran.luchito.com/recipes/tex-mex/cheese-stuffed-meatballs/
https://gran.luchito.com/recipes/chilli/ultimate-chilli-con-carne/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/chilli/ultimate-chilli-con-carne/"> https://gran.luchito.com/recipes/chilli/ultimate-chilli-con-carne/
https://gran.luchito.com/recipes/traditional-mexican/mexican-chicken-stew/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/traditional-mexican/mexican-chicken-stew/"> https://gran.luchito.com/recipes/traditional-mexican/mexican-chicken-stew/
https://gran.luchito.com/recipes/prawn-and-chorizo-risotto/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/prawn-and-chorizo-risotto/"> https://gran.luchito.com/recipes/prawn-and-chorizo-risotto/
https://gran.luchito.com/recipes/family-favourites/chicken-parmigiana/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/chicken-parmigiana/"> https://gran.luchito.com/recipes/family-favourites/chicken-parmigiana/
https://gran.luchito.com/recipes/burritos/chicken-burrito/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/burritos/chicken-burrito/"> https://gran.luchito.com/recipes/burritos/chicken-burrito/
https://gran.luchito.com/recipes/chilli/easy-chilli-con-carne/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/chilli/easy-chilli-con-carne/"> https://gran.luchito.com/recipes/chilli/easy-chilli-con-carne/
https://gran.luchito.com/recipes/family-favourites/chipotle-beef-stir-fry/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/chipotle-beef-stir-fry/"> https://gran.luchito.com/recipes/family-favourites/chipotle-beef-stir-fry/
https://gran.luchito.com/recipes/tex-mex/fully-loaded-potato-skins/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tex-mex/fully-loaded-potato-skins/"> https://gran.luchito.com/recipes/tex-mex/fully-loaded-potato-skins/
https://gran.luchito.com/recipes/tacos/fried-chicken-tacos-recipe/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/fried-chicken-tacos-recipe/"> https://gran.luchito.com/recipes/tacos/fried-chicken-tacos-recipe/
https://gran.luchito.com/recipes/chilli/vegan-chilli/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/chilli/vegan-chilli/"> https://gran.luchito.com/recipes/chilli/vegan-chilli/
https://gran.luchito.com/recipes/family-favourites/chicken-chorizo-risotto/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/chicken-chorizo-risotto/"> https://gran.luchito.com/recipes/family-favourites/chicken-chorizo-risotto/
https://gran.luchito.com/recipes/chilli/chilli-stuffed-peppers/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/chilli/chilli-stuffed-peppers/"> https://gran.luchito.com/recipes/chilli/chilli-stuffed-peppers/
https://gran.luchito.com/recipes/nachos/chilli-beef-nachos-guacamole-salsa/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/nachos/chilli-beef-nachos-guacamole-salsa/"> https://gran.luchito.com/recipes/nachos/chilli-beef-nachos-guacamole-salsa/
https://gran.luchito.com/recipes/family-favourites/creamy-coriander-chicken/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/creamy-coriander-chicken/"> https://gran.luchito.com/recipes/family-favourites/creamy-coriander-chicken/
https://gran.luchito.com/recipes/sides/homemade-chips/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/homemade-chips/"> https://gran.luchito.com/recipes/sides/homemade-chips/
https://gran.luchito.com/recipes/mexican-bbq/chicken-skewers/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/mexican-bbq/chicken-skewers/"> https://gran.luchito.com/recipes/mexican-bbq/chicken-skewers/
https://gran.luchito.com/recipes/family-favourites/meatball-pasta-bake/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/meatball-pasta-bake/"> https://gran.luchito.com/recipes/family-favourites/meatball-pasta-bake/
https://gran.luchito.com/recipes/traditional-mexican/pork-cheek-stew/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/traditional-mexican/pork-cheek-stew/"> https://gran.luchito.com/recipes/traditional-mexican/pork-cheek-stew/
https://gran.luchito.com/recipes/tacos/pork-pibil-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/pork-pibil-tacos/"> https://gran.luchito.com/recipes/tacos/pork-pibil-tacos/
https://gran.luchito.com/recipes/tacos/baja-fish-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/baja-fish-tacos/"> https://gran.luchito.com/recipes/tacos/baja-fish-tacos/
https://gran.luchito.com/recipes/breakfast/black-pudding-breakfast-recipe/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/breakfast/black-pudding-breakfast-recipe/"> https://gran.luchito.com/recipes/breakfast/black-pudding-breakfast-recipe/
https://gran.luchito.com/recipes/burritos/spicy-jackfruit-burrito/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/burritos/spicy-jackfruit-burrito/"> https://gran.luchito.com/recipes/burritos/spicy-jackfruit-burrito/
https://gran.luchito.com/recipes/traditional-mexican/vegan-mexican-stew/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/traditional-mexican/vegan-mexican-stew/"> https://gran.luchito.com/recipes/traditional-mexican/vegan-mexican-stew/
https://gran.luchito.com/recipes/burritos/pulled-pork-burrito/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/burritos/pulled-pork-burrito/"> https://gran.luchito.com/recipes/burritos/pulled-pork-burrito/
https://gran.luchito.com/recipes/traditional-mexican/cheese-empanadas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/traditional-mexican/cheese-empanadas/"> https://gran.luchito.com/recipes/traditional-mexican/cheese-empanadas/
https://gran.luchito.com/recipes/family-favourites/mexican-cottage-pie/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/mexican-cottage-pie/"> https://gran.luchito.com/recipes/family-favourites/mexican-cottage-pie/
https://gran.luchito.com/recipes/sides/mexican-cauliflower-cheese/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/mexican-cauliflower-cheese/"> https://gran.luchito.com/recipes/sides/mexican-cauliflower-cheese/
https://gran.luchito.com/recipes/sides/homemade-guacamole-recipe/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/homemade-guacamole-recipe/"> https://gran.luchito.com/recipes/sides/homemade-guacamole-recipe/
https://gran.luchito.com/recipes/family-favourites/mexican-fish-pie/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/mexican-fish-pie/"> https://gran.luchito.com/recipes/family-favourites/mexican-fish-pie/
https://gran.luchito.com/recipes/tacos/tacos-al-pastor/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/tacos-al-pastor/"> https://gran.luchito.com/recipes/tacos/tacos-al-pastor/
https://gran.luchito.com/recipes/family-favourites/honey-glazed-ham/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/honey-glazed-ham/"> https://gran.luchito.com/recipes/family-favourites/honey-glazed-ham/
https://gran.luchito.com/recipes/tacos/beef-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/beef-tacos/"> https://gran.luchito.com/recipes/tacos/beef-tacos/
https://gran.luchito.com/recipes/quesadillas/mushroom-quesadilla/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/quesadillas/mushroom-quesadilla/"> https://gran.luchito.com/recipes/quesadillas/mushroom-quesadilla/
https://gran.luchito.com/recipes/enchiladas/pulled-pork-enchiladas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/enchiladas/pulled-pork-enchiladas/"> https://gran.luchito.com/recipes/enchiladas/pulled-pork-enchiladas/
https://gran.luchito.com/recipes/quesadillas/vegetarian-quesadilla/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/quesadillas/vegetarian-quesadilla/"> https://gran.luchito.com/recipes/quesadillas/vegetarian-quesadilla/
https://gran.luchito.com/recipes/tacos/turkey-mince-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/turkey-mince-tacos/"> https://gran.luchito.com/recipes/tacos/turkey-mince-tacos/
https://gran.luchito.com/recipes/family-favourites/spicy-spaghetti-bolognese/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/spicy-spaghetti-bolognese/"> https://gran.luchito.com/recipes/family-favourites/spicy-spaghetti-bolognese/
https://gran.luchito.com/recipes/tacos/crunchy-beef-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/crunchy-beef-tacos/"> https://gran.luchito.com/recipes/tacos/crunchy-beef-tacos/
https://gran.luchito.com/recipes/sides/mexican-salad/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/mexican-salad/"> https://gran.luchito.com/recipes/sides/mexican-salad/
https://gran.luchito.com/recipes/family-favourites/mexican-chicken-pie/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/mexican-chicken-pie/"> https://gran.luchito.com/recipes/family-favourites/mexican-chicken-pie/
https://gran.luchito.com/recipes/sides/cowboy-beans/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/cowboy-beans/"> https://gran.luchito.com/recipes/sides/cowboy-beans/
https://gran.luchito.com/recipes/family-favourites/mexican-lasagna/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/mexican-lasagna/"> https://gran.luchito.com/recipes/family-favourites/mexican-lasagna/
https://gran.luchito.com/recipes/mexican-bbq/mexican-j**k-chicken/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/mexican-bbq/mexican-jerk-chicken/"> https://gran.luchito.com/recipes/mexican-bbq/mexican-j**k-chicken/
https://gran.luchito.com/recipes/family-favourites/honey-roast-parsnips/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/honey-roast-parsnips/"> https://gran.luchito.com/recipes/family-favourites/honey-roast-parsnips/
https://gran.luchito.com/recipes/sides/stuffed-courgette/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/stuffed-courgette/"> https://gran.luchito.com/recipes/sides/stuffed-courgette/
https://gran.luchito.com/recipes/burritos/refried-bean-burrito/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/burritos/refried-bean-burrito/"> https://gran.luchito.com/recipes/burritos/refried-bean-burrito/
https://gran.luchito.com/recipes/tacos/carne-asada-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/carne-asada-tacos/"> https://gran.luchito.com/recipes/tacos/carne-asada-tacos/
https://gran.luchito.com/recipes/family-favourites/pulled-lamb-flatbreads/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/pulled-lamb-flatbreads/"> https://gran.luchito.com/recipes/family-favourites/pulled-lamb-flatbreads/
https://gran.luchito.com/recipes/tacos/chorizo-potato-tacos/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/tacos/chorizo-potato-tacos/"> https://gran.luchito.com/recipes/tacos/chorizo-potato-tacos/
https://gran.luchito.com/recipes/enchiladas/enchilada-lasagne/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/enchiladas/enchilada-lasagne/"> https://gran.luchito.com/recipes/enchiladas/enchilada-lasagne/
https://gran.luchito.com/recipes/family-favourites/mexican-toad-in-the-hole/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/family-favourites/mexican-toad-in-the-hole/"> https://gran.luchito.com/recipes/family-favourites/mexican-toad-in-the-hole/
https://gran.luchito.com/recipes/enchiladas/green-chicken-enchiladas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/enchiladas/green-chicken-enchiladas/"> https://gran.luchito.com/recipes/enchiladas/green-chicken-enchiladas/
https://gran.luchito.com/recipes/traditional-mexican/mexican-chicken-soup/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/traditional-mexican/mexican-chicken-soup/"> https://gran.luchito.com/recipes/traditional-mexican/mexican-chicken-soup/
https://gran.luchito.com/recipes/sides/mexican-mashed-potatoes/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/sides/mexican-mashed-potatoes/"> https://gran.luchito.com/recipes/sides/mexican-mashed-potatoes/
https://gran.luchito.com/recipes/breakfast/huevos-rancheros/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/breakfast/huevos-rancheros/"> https://gran.luchito.com/recipes/breakfast/huevos-rancheros/
https://gran.luchito.com/recipes/fajitas/halloumi-fajitas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/fajitas/halloumi-fajitas/"> https://gran.luchito.com/recipes/fajitas/halloumi-fajitas/
https://gran.luchito.com/recipes/quesadillas/fajita-quesadilla/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/quesadillas/fajita-quesadilla/"> https://gran.luchito.com/recipes/quesadillas/fajita-quesadilla/
https://gran.luchito.com/recipes/fajitas/prawn-fajitas/" }" data-sheets-hyperlink="https://gran.luchito.com/recipes/fajitas/prawn-fajitas/"> https://gran.luchito.com/recipes/fajitas/prawn-fajitas/
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@luchitoallison 

This information is not enough. We can't see the issue in the Google search.

Please at least provide us a screenshot of the issue. Also, we need the example of the pages/posts where you see it works fine. 

Posts: 7
Topic starter
(@luchitoallison)
Active Member
Joined: 2 years ago

https://gran.luchito.com/recipes/enchiladas/chicken-enchiladas/

This recipe has 5 5* ratings - screenshot below but can be found scrolling to the bottom of the recipe URL above

image

 

However the recipe's ratings does not pull through to google search which I assume is why search console has flagged that they are missing average rating

image

 This is a consistent problem for every recipe that has received a star rating for our website with all of the URLs above in the thread.

 

The ratings work for our product range

image
image

 

The ratings were working and the fix above has been applied but it has stopped working. If you could please advise a new fix to resolve the issue or I could schedule a meeting with us and our developers to discuss further?

Allison

3 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@luchitoallison,

We see that the hook works. The HTML is changed as it's expected. See the screenshot below:

Chicken Enchiladas Recipe with Red Sauce  Gran Luchito   Google Chrome

If you see any errors in the Google schema section provide us a screenshot of the error for further support. 

(@luchitoallison)
Joined: 2 years ago

Active Member
Posts: 7

@asti the website developers have asked me to send you this link https://search.google.com/test/rich-results/result/r/recipes?id%3DW3NSg5TlY-LRkFZrfukmwA&source=gmail&ust=1688052427206000&usg=AOvVaw168y8aRmsnaF0BYxybzVx m"> https://search.google.com/test/rich-results/result/r%2Frecipes?id=W3NSg5TlY-LRkFZrfukmwA and that no ratings appear in Google. If you could please advise of the fix it would be most appreciated.

Allison

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@luchitoallison,

There are missing the fields that don't have any relation to the wpDiscuz plugin. 

Post Rating – Using Aggregate Rating Schema – Frequently Asked Questions – wpDiscuz Support Forum   Google Chrome
Проверка расширенных результатов – Google Search Console   Google Chrome

You'll need to customize the code and add the code and adjust it as it's necessary in your case.

In other words the code is just an example, you should change it. 

Share: