Title: devdemon's Replies | WordPress.org

---

# devdemon

  [  ](https://wordpress.org/support/users/devdemon/)

 *   [Profile](https://wordpress.org/support/users/devdemon/)
 *   [Topics Started](https://wordpress.org/support/users/devdemon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/devdemon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/devdemon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/devdemon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/devdemon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/devdemon/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostRatings] Show zero-rated posts with custom post type](https://wordpress.org/support/topic/show-zero-rated-posts-with-custom-post-type/)
 *  Thread Starter [devdemon](https://wordpress.org/support/users/devdemon/)
 * (@devdemon)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/show-zero-rated-posts-with-custom-post-type/#post-10829573)
 * Thanks, Lester! That’s what I needed!
 * If somebody have the same issue – here is example of my code
 *     ```
       'post_type' => 'product',
       'orderby' => 'meta_value_num',
       'order' => 'DESC',
       'meta_query' => array(
         'relation' => 'OR',
         array(
            'key' => 'ratings_average', 
            'compare' => 'NOT EXISTS'
          ),
          array(
            'key' => 'ratings_average',
            'compare' => 'EXISTS'
         )
       ),
       ```
   
    -  This reply was modified 7 years, 7 months ago by [devdemon](https://wordpress.org/support/users/devdemon/).
    -  This reply was modified 7 years, 7 months ago by [devdemon](https://wordpress.org/support/users/devdemon/).

Viewing 1 replies (of 1 total)