daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jan 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $args = array(
  2.     'post_type' => 'publication',
  3.     'post_status' => 'publish',
  4.     'category_name' => 'my-category',
  5.     'posts_per_page' => 20,
  6.     'orderby' => 'publication_year',
  7.     'order' => 'DESC',
  8.     'paged' => $paged
  9. );
  10. $loop1 = new WP_Query($args);
  11.    
  12. $args = array(
  13.     'post_type' => 'publication',
  14.     'post_status' => 'publish',
  15.     'category_name' => 'my-category',
  16.     'posts_per_page' => 20,
  17.     'orderby' => 'meta_value_num',
  18.     'meta_key' => 'publication_year',
  19.     'order' => 'DESC',
  20.     'paged' => $paged
  21. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top