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
Number of votes / r...
 
Share:
Notifications
Clear all

[Solved] Number of votes / ratings

4 Posts
3 Users
0 Reactions
2,197 Views
Posts: 4
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
(@craigd)
Active Member
Joined: 5 years ago
[#822]

Hi, I know currently the number of ratings/votes is shown when you hover over the summary, however is there a shortcode I can use to call the number of ratings/votes?

Thanks!


3 Replies
Asti
Posts: 8208
 Asti
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
(@asti)
Illustrious Member
Joined: 8 years ago

@craigd,

We're really sorry, but there neither option nor shortcode for that. If you're a developer you should get the value from the comment_meta table and display it where you want. 


Posts: 1
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
(@jimyb3)
New Member
Joined: 5 years ago

Hi, 

My name is Dimitris. I want to insert manually old post ratings and ratings count at the DB, because I make some changes and I accidentaly delete some tables. 

I install again the wpdiscuz but the tables are empty, I found the wpdiscuz_post_rating and the wpdiscuz_post_rating_count and I inserted the old values but when someone rate then the rate and the count return to the old values.

For instance after new installation of wpdiscuz, users started to rate again the posts, a post has 5 new votes with 3 stars, I went to wpdiscuz_post_rating and the wpdiscuz_post_rating_count to set the old values but after a new vote it shows again 6 votes and 3.5 stars, not the 62 votes and 2 stars.

Is there a solution for my situation? Thanks!


1 Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8208
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

@jimyb3,

You should also change it in the wp_wc_users_rated table. 


Share: