Domain Manage

Implement star ratings on category page

Discussion in 'Wordpress' started by retired_member33, Feb 27, 2012.

Thread Status:
Not open for further replies.
  1. retired_member33

    retired_member33 Retired Member

    Joined:
    Apr 2010
    Posts:
    1,464
    Likes Received:
    13
    Hi,

    As you all know, Google has started to show customer reviews in the serps by using star ratings.

    I am now trying to implement this on my Wordpress site which uses a category page as a store name or a brand.

    There are plenty of plugins out there which allow you to add star ratings to posts and pages but I am trying to add star ratings to a category page/archive.

    Does anyone know how I can implement a star rating form which is shown in the serps on a Wordpress category page.

    I am willing to pay the person who can do this for me.
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
    if you look at the plugins that provide this, don't they have a wp shortcode you could just drop into the category page template?
     
  4. retired_member33

    retired_member33 Retired Member

    Joined:
    Apr 2010
    Posts:
    1,464
    Likes Received:
    13
    They have shortcodes I think but I am unsure whether I can use that in the code of a page.

    Arent shortcodes only for pages and posts?
     
  5. fresh79 United Kingdom

    fresh79 Active Member

    Joined:
    Mar 2008
    Posts:
    455
    Likes Received:
    5
    GD star ratings does this & you can check the results of microformats here to see if you did it right. if not use this guide to check it & fix errors

    if you want to use shortcode in a theme use this
    Code:
    <?php echo do_shortcode ('[your_short_code]') ;?>
    Enjoy ;)

    Edit - just read you OP, im not sure if it will work in categories? best to try it, its fairly quick to implement.
     
    Last edited: Feb 27, 2012
  6. retired_member33

    retired_member33 Retired Member

    Joined:
    Apr 2010
    Posts:
    1,464
    Likes Received:
    13
    Thanks guys,

    Trying a couple of things at the moment, no luck so far :(
     
  7. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
    what theme are you using? if its thesis or another with hooks you can easily add a custom hook to include the categories.

    failing that the alternative is to find the template php for your theme and add the php code
     
  8. retired_member33

    retired_member33 Retired Member

    Joined:
    Apr 2010
    Posts:
    1,464
    Likes Received:
    13
    I am using the couponpress theme, have tried a few more options but no luck so far:(
     
  9. dta United Kingdom

    dta Active Member

    Joined:
    Jul 2009
    Posts:
    396
    Likes Received:
    5
    you need to do some logic like:
    check if its a category i.e. use is_category()
    and then echo the shortcode or just call the rating plugin function directly.

    hope that helps. Failing that, I suggest to save you time and money, contacting the owners of the theme and asking them where you should add logic to include custom content on just the category page.
     
  10. retired_member33

    retired_member33 Retired Member

    Joined:
    Apr 2010
    Posts:
    1,464
    Likes Received:
    13
    Thanks for that! Going to contact them in a bit and see whats possible.

    Who would have thought that something as simple as this would be such a pain in the backside :)
     
  11. fresh79 United Kingdom

    fresh79 Active Member

    Joined:
    Mar 2008
    Posts:
    455
    Likes Received:
    5
    Looks like GD star can be used for categories, check this blog post out from the gd star website.
     
  12. retired_member33

    retired_member33 Retired Member

    Joined:
    Apr 2010
    Posts:
    1,464
    Likes Received:
    13
    Read that last night but the more I read the more confused I got :D

    He mentions a post which explains the workings of the plugin and categories further but can't find it anywhere.
     
  13. AssetDomains United Kingdom

    AssetDomains Well-Known Member

    Joined:
    Feb 2010
    Posts:
    2,951
    Likes Received:
    52
    Assuming each category is going to have a little description theirs a couple of things you could try.
    If your plugin allows page ratings then custom pages could be used. With modded template page to display stuff from any category. Thinking about it this is the easiest option I'll do it for a few beers.
     
Thread Status:
Not open for further replies.

Share This Page