For the [do stuff] part – how do I print the meta_value for a certain meta_key for the selected industry?
I can use this to display the meta_key’s meta_value for a certain user_id:
<?php the_author_meta( company, 8 ); ?>
But I don’t understand how to tie that to the selected industry… I tried this but doesn’t work:
<?php
$industrycat = $wpdb->get_results("SELECT user_id FROM $wpdb->usermeta WHERE meta_value='Web/Interactive'");
foreach ($industrycat as $industrycat) {
echo the_author_meta( 'company', '$industrycat' );
}
?>