WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
Sidebar widget placement for reviews (48 posts)

  1. cbrazy
    Member
    Posted 3 years ago #

    Can we get some code so we can put the review in the sidebar via a text widget?

  2. James
    Member
    Posted 3 years ago #

    I would also like to see this happen!

  3. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    2 shortcodes have been added. 1 for displaying reviews only (for use in a sidebar, homepage, etc) and 1 for displaying the current page's reviews and the review form. The codes should be able to be placed anywhere you want on any page.

    Any issues, please let me know. No styling has been done for showing reviews on any page, so for now you may need to roll your own CSS for that into your theme. An update to that may come later once everyone approves that it is working correctly for them.

  4. James
    Member
    Posted 2 years ago #

    Amazing! :-)

    great plugin bompus!

  5. joshvaz89
    Member
    Posted 2 years ago #

    I recently installed your awesome plugin it works great! But I still can't figure out how to display the reviews on the sidebar. I notice Customer Reviews under Settings it mentions:

    An example would be to use this in the sidebar contents of a page, or maybe on the homepage. For this to work in a sidebar, the sidebar contents would need to be setup as a page, so the code can be inserted.

    I been trying to figure this out for the past several hours, and I still cannot manage to display any of the reviews with the shortcode in the sidebar. I try displaying a page within a sidebar with the shortcode. But it only shows the shortcode itself not the actual reviews. I also try using the do_shortcode function to display that specific shortcode. Yet I still do not get any results. I even add the filter to display shortcodes in text widgets and still it does not work.

    If possible could you please help me out on this, a client of of mine is need of this. I appreciate it thanks! :)

  6. joshvaz89
    Member
    Posted 2 years ago #

    Oh wait I just realize just by reading:

    the sidebar contents would need to be setup as a page, so the code can be inserted.

    Pretty much I have to create a page and make that specific page set to look like a sidebar. I now understand. Hmm, strange I made a widget to display a page with that shortcode and yet it only display the shortcode itself not the actual review content. I believe I had restated already. lol

  7. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    Wow.. I didn't even realize that there was a do_shortcode function. I will do some research on adding shortcodes that can use this method, and then the plugin will have -REAL- shortcode support, instead of my own simple implementation of it. Thanks for pointing that out. Look for this to be added in the next update.

  8. joshvaz89
    Member
    Posted 2 years ago #

    Hey no problem, I hope it will work out. :)

    My next step is to actually try using an rss feed to pull it into a sidebar.

    Also I read another forum here of someone mentioning about adding extra rating fields. Such as, a rating for stability, performance, value, etc. If you were to rate a product for example. I actually try adding an extra rating field into the plugin and it worked, but i haven't manage or had the chance to have it upload to the database yet. I realize though by doing that you will have 2 different ratings and the hReview will only aggregate the overall ratings of all users. So I thought what if you had the option to have multiple rating fields in form, than somehow grab the average or overall rating of each field. Than from there grab each overall rating from each user than an SEO will grab that. Just a thought and that will make more complex. lol

  9. joshvaz89
    Member
    Posted 2 years ago #

    Sorry for the typos, just to make it clearer what I meant was the ability to have custom rating fields. For example, you have a product and you allow users to rate its value, performance, stability, etc. Than being able to grab the user's overall rating from each custom rating field in one form. From there grab ALL user's overall ratings and make an overall rating of that. Than an SEO like Google will grab that. Hopefully that makes sense. I know people will want to see multiple ratings of a product or service.

    And the rss trick didnt work, it manage to pull the review content. But it pulled everything, including the hidden fields and form.

  10. cbrazy
    Member
    Posted 2 years ago #

    ...what do we (dummies) do to get the comments into a sidebar?

  11. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    I'm working on the next update right now. It should be available by tomorrow morning and will include true (WP hook compliant) shortcode support.

  12. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    2.3.7 includes support for "proper" WP shortcodes. Please try it out and let me know if it works for your purposes.

  13. James
    Member
    Posted 2 years ago #

    Hey bompus

    is there a way i can limit the amount of characters in the sidebar? for shortcode:
    [WPCR_SHOW POSTID="ALL" NUM="3"]

    i have some reviews that are pretty lengthy, be great if i could limit the amount of words used for each review.

  14. joshvaz89
    Member
    Posted 2 years ago #

    Hey Bompus,

    You are awesome!!!!

    We are actually happy that you fix that issue, and my boss wants to thank you for that.

    I know you have been ask way too many questions to fix or add certain abilities to the plugin. But I notice one thing when using the shortocde in general. It does not show the star ratings. Is there a simple way to fix that? Sorry to bug you on that.

  15. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    @jimbest63 - I forgot I was going to add a SNIPPET="<length"> to that.. If a snippet is used, would it make sense to have a "more..." link that would take you to the URL of the page that the review was left on, and jump to that review on the page?

    @joshvaz89 - Could you provide the URL for your page that is not showing the stars in the sidebar?

  16. James
    Member
    Posted 2 years ago #

    @bompas: SNIPPET="<length"> would be perfect. and with the addition of a "more...." link i think it would give the plugin an overall better user experience. thumbs up from me.

  17. oavs
    Member
    Posted 2 years ago #

    I am still having problems with displaying on my side widget. I have created a page and called 'Testimonials' and can display on the page but how on earth can you display it in side bar?

    Would be nice to have a widget that we can use this great feature easy. Can anyone please help with side bar widget implementation?

    Thanks

  18. joshvaz89
    Member
    Posted 2 years ago #

    I believe he may work on that for the next update. But for now you need to use the shortcode function called do_shortcode()

    In order to do it within the sidebar you must add <?php do_shortcode('[WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] ') ?>

  19. James
    Member
    Posted 2 years ago #

    @oavs:

    or you could just put the shortcode [WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] inside a text widget?

  20. joshvaz89
    Member
    Posted 2 years ago #

    lol that too. Reason I use do_shortcode() function because I made a custom style for it and my text widget has it's own style layout which i do not want the reviews to be under.

  21. oavs
    Member
    Posted 2 years ago #

    Thanks guys,

    I have tried [WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] without any success as the code it self showed up even though I have pasted in HTML mode. At the time I did not know about the do_shortcode () function and from utter frustration I have deactivated and installed a different testimonial plugin (TB Testimonials) designed for widgets and seems to be working fine.

    Thanks again for your posts.

  22. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    A widget is being worked on for this. In the meantime, the recommendations above do work.

  23. Jessica
    Member
    Posted 2 years ago #

    Thanks for the hard work, looking forward to the release of this widget :)

  24. frankjackson
    Member
    Posted 2 years ago #

    @jimbest63:

    I've done what you suggested

    (ie, putting [WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] inside a text widget)

    ... and it works great, but because of that the form itself is now showing up after the page/post entry (as normal) on every page & post on my site (which I definitely don't want).

    Is that happening to you too and/or do you have any idea how to stop it?

    thanks alot

    fj

  25. James
    Member
    Posted 2 years ago #

    @frankjackson:

    If i understand you correctly....
    You have the plugin enabled by default on every post / page.

    To disable:

    1. Go to Customer review settings in WP admin
    2. Under General Settings uncheck the enable by default on every post / page, then save changes.

    OR you can do this manually before publishing a post / page.

  26. frankjackson
    Member
    Posted 2 years ago #

    @jimbest63:

    Thanks for replying but THAT is the funny part:
    There isn't a single page or post on my site (other than my testimonials page) that has it enabled. I have it unchecked on every page/post and it still shows up. When I take the shortcode out of the sidebar then it's back to normal (ie, the form stops showing up on every page/post like it should).

    If you care, I explained it better here [Plugin: WP Customer Reviews] Sidebar Working but the Form Now Shows on Every Post but don't worry about it. I thought maybe there was a simple fix but it obviously isn't happening to you. Thanks for trying though.

    fj

  27. bompus
    Member
    Plugin Author

    Posted 2 years ago #

    I am looking into this issue and will try to have it resolved soon. Thanks!

  28. frankjackson
    Member
    Posted 2 years ago #

    @bompus

    I switched the theme and everything works as it should so it may be a very isolated thing (ie, not your problem) thanks though.

  29. sitebuildernow
    Member
    Posted 2 years ago #

    Hi, i had to use the <?php do_shortcode('[WPCR_SHOW POSTID="ALL" NUM="3" SNIPPET="" MORE="" HIDECUSTOM="0" HIDERESPONSE="0"] ') ?>code for sidebar to get anything but the short code to show. but now all I get is (note: customer reviews is the widget title)
    ******************
    Customer Reviews
    find it
    Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!
    ****************************

    RESOLVED. I added the add_filter('widget_text', 'do_shortcode'); code to my theme's functions.php and then was able to use the short code without the do shortcode code and now all works wonderfully - thanks!

  30. sorin.berceanu@yahoo.com
    Member
    Posted 2 years ago #

    Hi there. I am trying to use this great plug-in on an website. I am displaying the customers' reviews in the sidebar as well.So far so good. The only problem that I have is that the text within the sidebar text widget showing the reviews is too narrow and is not very space-effective. I would like to have it more widely spread. My English is not the best so if you didn't understand please visit http://www.westashby.mihappy.co.uk/ and you'll figure it out. Is this setting to do with the plug-in or with my CSS ? THX.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic