Advertisement
Guest User

Untitled

a guest
Feb 27th, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php $cat_posts = new WP_Query($query_string."&meta_key=wpcf-data-nuo&orderby=meta_value&order=ASC");
  2.                     //echo $GLOBALS['wp_query']->request;
  3.                     /*$args = array(
  4.                        'post_type' => 'post',
  5.                        'meta_key' => 'wpcf-data-nuo',
  6.                        'orderby' => 'meta_value',
  7.                        'order' => 'ASC',
  8.                     );
  9.                     $cat_posts = new WP_Query($args);*/
  10.                         if ($cat_posts->have_posts()):while($cat_posts->have_posts()):$cat_posts->the_post();
  11.                     ?>
  12.  
  13. ...here goes items....
  14.  
  15. <?php endwhile; else: ?>
  16. <p class="error"><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  17. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement