The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Aggregate Rating Sc...
 
Notifications
Clear all

Issue Aggregate Rating Schema for LocalBusiness

3 Posts
2 Users
0 Reactions
4,557 Views
(@manoloparer)
Posts: 2
New Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#10659]

Hi,

As detailed in this post: https://wpdiscuz.com/community/f-a-q/post-rating-using-aggregate-rating-schema/ , you can enable the Aggregate Rating Schema for LocalBusiness adding this code (attached below) to the functions.php + turning on the "Aggregate Rating Schema" option in Dashboard > wpDiscuz > Settings > Article and Comment Rating Tab.

add_filter('wpdiscuz_rating_schema', function ( $rating_schema, $key, $postid ){
    $my_rating_schema = 'LocalBusiness';
    $rating_schema = str_replace(__('Article Rating', 'wpdiscuz'), $my_rating_schema . ' Rating', $rating_schema);
    return preg_replace( '|schema\.org\/Product|i', 'schema.org/' . sanitize_text_field($my_rating_schema) , $rating_schema);
},11, 3);

 

However, I have followed this and the schema is not visible in the posts. Do you know what is the issue?

Thanks,

M

 


 
Posted : 02/06/2025 2:39 am
Asti
 Asti
(@asti)
Posts: 8264
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi,

You should add the remaining data for the schema. You can use this website to test it — it will help you verify if everything is set up correctly.

Please note that the schema data will not be visible in the posts. It's intended for Google search engine.


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 04/06/2025 3:51 pm
(@manoloparer)
Posts: 2
New Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi,
The data schema was already in place, with the LocalBusiness schema added, but no signs of the schema of the Aggregate Rating Schema as you mention in the post I attached.

image

 
Posted : 06/06/2025 8:41 pm