Advertisement
Guest User

Untitled

a guest
Jul 25th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. $post_type = 'post';
  3. $post_type2 = 'listing';
  4. $post_type3 = 'answer';
  5. $post_type4 = 'question';
  6. global $wpdb;
  7. /**/
  8. $count = $wpdb->get_col( "SELECT COUNT(ID) FROM $wpdb->posts WHERE post_author = '" . $curauth->ID . "' AND post_type = '".$post_type." or ".$post_type2." or ".$post_type3."' or ".$post_type4."' and post_status = 'publish'" );
  9. echo $post_type;
  10. echo $post_type2;
  11. echo $post_type3;
  12. echo $post_type4
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement