<ul class="ronakweb">
<?php $query = new WP_Query( array( 'post_type' => 'download',
'order'  => 'DESC',
'orderby'  => 'meta_value_num',
'meta_key'  => '_edd_download_earnings',
'posts_per_page'  => 10
) );
if ( $query ) { while( $query->have_posts() ) : $query->the_post();
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- <?php $sales = get_post_meta( get_the_ID(), '_edd_download_sales', true ); echo ( is_null( $sales ) ? '0' : $sales ); ?> فروش</li>
<?php endwhile; } ?>
</ul>
[insert_php]
    'download', 'order' => 'DESC', 'orderby' => 'meta_value_num', 'meta_key' => '_edd_download_earnings', 'posts_per_page' => 10 ) ); if ( $query ) { while( $query->have_posts() ) : $query->the_post(); ?>
  • - فروش
[/insert_php]

[insert_php]

      ‘order’ => ‘DESC’,

 

      ‘orderby’ => ‘meta_value_num’,

 

      ‘meta_key’ => ‘_edd_download_earnings’,

 

      ‘posts_per_page’ => 10

 

      ) );

 

      if ( $query ) { while( $query->have_posts() ) : $query->the_post();

 

    ?>


  • فروش

[/insert_php]