هو،
سلام علیکم،
من این کدو نوشتم که بیشترین دانلودها رو نشون بدم،دانلود اضافه میشه بدون مشل و داخل پست هم نمایش میده،اما
این کد دانلودهایی رو نشون میده که از 10 کمتر باشن!
متوجه ایرادش نمیشم:
<ul>
<?php
$custom_query2 = new WP_Query( array ( 'posts_per_page' => 20,'orderby' => 'meta_value', 'meta_key' => 'dl_counter' ) );
while($custom_query2->have_posts()) : $custom_query2->the_post();
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?>(<?php echo get_post_meta(get_the_ID(),'dl_counter',true); ?>)</a></li>
<?php endwhile; ?>
</ul>
<?php wp_reset_postdata(); ?>
یا حق ج