SHARE
TWEET

Untitled

a guest Jul 17th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function jf_pulldown_test() {
  3.  
  4. global $wpdb;
  5. global $post;
  6.  
  7.  $querystr = "
  8.     SELECT DISTINCT wpm.meta_value
  9.     FROM $wpdb->postmeta wpm
  10.     WHERE wpm.meta_key = 'memberdir_site_site_state_province'
  11.     ";
  12.  
  13.  $pageposts = $wpdb->get_results($querystr, OBJECT);
  14. ?>
  15.  
  16.  <?php if ($pageposts): ?>
  17.    
  18.   <?php foreach ($pageposts as $postjf):
  19.  
  20.     print_r($pageposts);
  21.        
  22. ?>
  23.      
  24.   <?php endforeach; ?>
  25.  
  26.   <?php else : ?>
  27.     <h2 class="center">Not Found</h2>
  28.     <p class="center">Sorry, but you are looking for something that isn't here.</p>
  29.  <?php endif; ?>
  30.  
  31. <?php
  32.     }
RAW Paste Data
Top