Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $cat_posts = new WP_Query($query_string."&meta_key=wpcf-data-nuo&orderby=meta_value&order=ASC");
- //echo $GLOBALS['wp_query']->request;
- /*$args = array(
- 'post_type' => 'post',
- 'meta_key' => 'wpcf-data-nuo',
- 'orderby' => 'meta_value',
- 'order' => 'ASC',
- );
- $cat_posts = new WP_Query($args);*/
- if ($cat_posts->have_posts()):while($cat_posts->have_posts()):$cat_posts->the_post();
- ?>
- ...here goes items....
- <?php endwhile; else: ?>
- <p class="error"><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement