Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function jf_pulldown_test() {
- global $wpdb;
- global $post;
- $querystr = "
- SELECT DISTINCT wpm.meta_value
- FROM $wpdb->postmeta wpm
- WHERE wpm.meta_key = 'memberdir_site_site_state_province'
- ";
- $pageposts = $wpdb->get_results($querystr, OBJECT);
- ?>
- <?php if ($pageposts): ?>
- <?php foreach ($pageposts as $postjf):
- print_r($pageposts);
- ?>
- <?php endforeach; ?>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center">Sorry, but you are looking for something that isn't here.</p>
- <?php endif; ?>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement