The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

EC Stars Rating
Sidebar Widget Working With Custom Post Types (2 posts)

  1. Chris
    Posted 3 years ago #

    I've installed the widget, and added the relevant PHP code into my template files, so that people can rate an "product". This is a custom post type called... "product" ...original hey! ;)

    Now I want to add the sidebar widget that shows the Top 5 posts, but where post type = "product". Can you tell me how I can do this? I've played around with the ec-stars-rating-widget.php but with no success at the moment (


  2. ecoal95
    Plugin Author

    Posted 3 years ago #

    That's a good idea, will implement it in the next version, it's just to play with the wp_query in line 85. Adding 'post_type' => 'product' should be enough, I'll implement an option anyway

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • EC Stars Rating
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic