Guest User

Untitled

a guest
Jun 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. global $wpdb;
  2. $posts = $wpdb->get_results( "SELECT ID, post_title, post_modified_gmt
  3. FROM $wpdb->posts
  4. LEFT JOIN $wpdb->term_relationships as t
  5. ON ID = t.object_id
  6. WHERE post_type = 'post' AND post_status = 'publish' AND t.term_taxonomy_id = 3
  7. WHERE post_status = 'publish'
  8. AND post_password = ''
  9. AND post_type = 'post'
  10. ORDER BY post_type DESC, post_modified DESC
  11. LIMIT 10" );
Add Comment
Please, Sign In to add comment