[wp-hackers] Select Menu to filter results by Custom Values

Kelter-BadCat Design kelter at badcat.com
Fri Nov 21 22:15:22 GMT 2008

Bingo! As I suspected - that was the issue.

OK - So who wants to hold my hand through SQL queries  ;-)


At 4:07 PM -0600 11/21/08, Otto wrote:
>Additional: I re-read your first post, it seems like you want to get
>the values for a key meta key for ALL posts, correct?
>If so, then there's no way to do that with WordPress functions. Meta
>values are post-specific, there's no functions to manipulate them as a
>group, they're attached to a post.
>You'll need to write a custom SQL query to pull out the data you want.
>scribu's post had the correct basic idea. Write some SQL to select the
>values, pull them out into an array using $wpdb->get_results, then
>loop through them to do your output.
>There's no other way to do it, really.

More information about the wp-hackers mailing list