Note on this page, I tried to use the product_tags=”HK” variable, but it did not work as expected.
https://grayguns.com/hk-parts-product-reviews/
It is showing there are 20 reviews, but there are really more than 200 reviews with that product_tag. One of the products alone with that tag has 78 reviews (https://grayguns.com/product/hk-p30-p2000-short-reset-system-without-thumb-safety/)
I figured out one of the issues. The per_page setting only works if you also set the show_more to a similar number. Originally, I only used.
[cusrev_all_reviews per_page="30"]
But that did not work. Then I tried the code in the original post. Same issue. Only shows five.
Then I changed to..
[cusrev_all_reviews sort="DESC" sort_by="date" per_page="30" show_summary_bar="true" show_media="true" show_products="true" categories="" product_tags="" tags="" products="current" product_reviews="true" shop_reviews="true" inactive_products="false" show_replies="false" show_more="30" min_chars="0" avatars="initials" users="all" add_review="false"]
And now I see 30 on the original page and it loads 30 more.
So I’m thinking that may be confusing for some folks.
Also
-
This reply was modified 1 year, 1 month ago by
steve49589.
-
This reply was modified 1 year, 1 month ago by
steve49589. Reason: Updated to add more info
-
This reply was modified 1 year, 1 month ago by
steve49589. Reason: Updated to clarify
Hi,
Thanks for using CusRev.
If you go to the settings page Reviews > Settings > Shortcodes tab and read the details of the attributes, I think it is easier to understand and expected.
Here are the default parameters of the shortcode:
[cusrev_all_reviews sort="DESC" sort_by="date" per_page="10" show_summary_bar="true" show_media="true" show_products="true" categories="" product_tags="" tags="" products="current" product_reviews="true" shop_reviews="true" inactive_products="false" show_replies="false" show_more="5" min_chars="0" avatars="initials" users="all" add_review="false"]
That means if you don’t add those attributes to the shortcode, it will show reviews with the default value. And here are attribute details:
per_page argument defines how many reviews will be shown at once. This argument is ignored when show_more argument is greater than 0.
show_more argument defines the number of additional reviews to display after a user presses the ‘Show more’ button. If this argument is “0”, then ‘Show more’ button will be hidden and the standard WordPress pagination will be used.
So if you want to show the number of reviews by per_page attribute, you need to set show_more to 0. For example: [cusrev_all_reviews per_page="30" show_more="0"]
I hope that makes sense.
We haven’t heard from you for more than two weeks. For this reason, I’ll assume that either you are not interested in this question/problem anymore or it has been resolved. If you still require any help, please start a new forum topic.
Hello,
I’d like to revive this thread. I’m having the same problem as my previous friend.
The number of comments loaded isn’t correct, and the “Show more” button isn’t working.
I should point out that there are four comments, and four replies for each comment. I tried displaying all comments (with 20 for example), and they all loaded correctly (so the 8 (comments + replies)) only on the value [show_more="20"], doesn’t work on the value [per_page="20"].
Here’s my current shortcode:
[cusrev_all_reviews sort="DESC" sort_by="date" per_page="4" show_summary_bar="true" show_media="true" show_products="false" categories="" product_tags="" tags="" products="current" product_reviews="true" shop_reviews="false" inactive_products="true" show_replies="true" show_more="4" min_chars="0" avatars="initials" users="all" add_review="false"]
The page in question