title: How to get most viewed posts using another table in Wordpress
body: <p>I want to get my most viewed posts, and I'm using yuzo plugin for count views.. But this code doesn't work.. How can I make it work ?</p>
  
  <pre><code>$popular = new WP_Query( array(
  'post_type'             =&gt; array( 'post' ),
  'showposts'             =&gt; $instance['popular_num'],
  'cat'                   =&gt; $instance['popular_cat_id'],
  'ignore_sticky_posts'   =&gt; true,
  'orderby'               =&gt; 'wpng_yuzoviews.views',
  'order'                 =&gt; 'dsc',
  'date_query' =&gt; array(
  array(
          'after' =&gt; $instance['popular_time'],
        ),
    ),
  ) );
  </code></pre>