How to remove "unreliable coupons" from clipper stores page?
Hi! I'm using appthemes clipper latest version and I couldn't find the archive suggested in the thread "How to remove "unreliable coupons" from clipper popular coupons widget?", which I copy below.
... look for the set of codes below through clipper\includes\theme-widgets.php specifically on line 27;
Code:
$popular_posts = new WP_Query( array( 'post_type' => APP_POST_TYPE, 'posts_per_page' => $number, 'orderby' => 'comment_count', 'order' => 'DESC' ) );
Replace it with this;
Code:
$popular_posts = new WP_Query( array( 'post_type' => APP_POST_TYPE, 'posts_per_page' => $number, 'orderby' => 'comment_count', 'order' => 'DESC', 'post_status' => 'publish' ) );
As you can see, we have only added the 'post_status' => 'publish' parameter.
I appreciate any sugestions to get rid of the unreliable cupons comments if there is no unreliable coupons at all.
Thanks!!!