WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Chris
    Member
    Posted 1 year 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 (

    http://wordpress.org/extend/plugins/ec-stars-rating/

  2. ecoal95
    Member
    Plugin Author

    Posted 1 year 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

About this Topic