Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. if (have_posts()) : the_post(); global $post,$wpdb,$listing_width,$preview;
  2. while (have_posts()) : the_post(); global $post,$wpdb,$listing_width,$preview;
  3. // echo info
  4. endwhilst;
  5.  
  6. if($post->package_id == 16)
  7. // put this into array so I can loop through later
  8. $adType = $post->package_id;
  9. switch($adType) {
  10. case 16:
  11. {
  12. array_push($premium, $post);
  13. break;
  14. }
  15. case 17:
  16. {
  17. array_push($standard, $post);
  18. break;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement