سلام
کد زیر پست ها را بر اساس تعداد دیدگاه ها مرتب میکنه میشه کاری کرد کرد که پست هایی که دیدگاه ندارند نمایش نده؟
/ Showing posts ordered by comment count in Posts Widget
add_action( 'elementor/query/comment_order', function( $query ) { // Here we set the query to fetch posts with // ordered by Idea count $query->set( 'orderby', 'comment_count' );
} );
1 نوشته - 1 participants
سون لرن • آموزش...برچسب : نویسنده : استخدام کار 7learn بازدید : 64