Difficulty on getting the appropriate shortcode
-
`
<?php
$popularpost = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$args = array (
‘post_type’ => array( ‘post’,’reward_style_type’),
‘posts_per_page’ => ‘8’,
‘meta_key’ => ‘wpb_post_views_count’,
‘orderby’ => ‘meta_value_num’,
‘order’ => ‘DESC’
);
$wp_query = new WP_Query($args);
?>if i have this loop instance what should be the shortcode?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Difficulty on getting the appropriate shortcode’ is closed to new replies.