Forum Replies Created

Viewing 3 replies - 376 through 378 (of 378 total)
  • redkite

    (@redkite)

    This is close to what I need to do too, I’ve modified it to this, but it’s not yet working:

    <?php
    	$company == get_the_author_meta('company');
    	$test == the_author_meta('industry');
    	if ($test=='Web/Interactive') {
    	echo $company;
    	}
    ?>

    Can someone point out what’s wrong here?

    Thread Starter redkite

    (@redkite)

    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' );
    	}
    ?>

    Having a similar problem, my button works, but when the popup window appears it never loads, the loader graphic just spins. This was working fine less than 1 week ago, I haven’t made any WP upgrades since then (I’m on 2.8.4).

Viewing 3 replies - 376 through 378 (of 378 total)