Notice: wp_deregister_script was called incorrectly. اسکریپتها و شیوهنامهها نباید پیش از wp_enqueue_scripts
، admin_enqueue_scripts
و login_enqueue_scripts
ثبت یا فراخوانی شوند. Please see Debugging in WordPress for more information. (این پیام در نگارش 3.3 افزوده شده است.) in /home/ronakweb/domains/ronakweb.com/public_html/wp-includes/functions.php on line 3190
Warning: Cannot modify header information - headers already sent by (output started at /home/ronakweb/domains/ronakweb.com/public_html/wp-content/themes/ronakweb2/functions.php:289) in /home/ronakweb/domains/ronakweb.com/public_html/wp-includes/feed-rss2.php on line 8
جهت نمایش مطالب پربازدید کوئری زیر را در محل مورد نظر قرار دهید ، کوئری زیر عنوان مطلب به همراه تصویر شاخص و دسته بندی را نمایش می دهد شما می توانید موارد دیگری مانند خلاصه مطلب ، تعداد دیدگاه ها ، نام نویسنده و … را نیز به آن بیافزایید .
<?php $args = array( 'post_type' => 'post', 'posts_per_page' => 6, 'orderby' => 'meta_value_num', 'meta_key' => 'views', 'order' => 'DESC', ); $my_query = new WP_Query( $args ); while ($my_query->have_posts()): $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <?php $views = get_post_meta($post->ID, 'views', true); ?> <div class="part"> <figure><?php if ( has_post_thumbnail() ) { the_post_thumbnail('first-thumb', array( 'alt' => ''.get_the_title(), 'title' => ''.get_the_title().'' )); } else { ?> <img src="<?php bloginfo('template_url');?>/image/ronakweb.png" width="154" height="154" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"> <?php } ?></figure><br> <div class="part-cat"><?php the_category(', ') ?></div><br> <div class="part-link"><a rel="bookmark" href="<?php the_permalink() ?>" ><?php the_title(); ?></a></div> </div> <?php endwhile; ?>]]>