conditional statement for user information from registration

I have set up a user-meta field on my registration form, “big_reader” with a radio “yes” or “no”. It’s an admin field, as the admin will determine if a user is a big reader. The default is “no” until the admin changes it to “yes”

I have a second form with a custom display, which outputs a post, and displays various user meta to accompany the post – display name, age, avatar plus other user meta.

I need to create a conditional on this form such that IF a user is a big reader (“yes”), I’d like to show a nice image (a “big reader” badge).

I’ve tried all sorts of combinations, but can’t figure out how to combine an IF statement with user meta from my registration form. Is this possible?

Should I be setting up the original field as a data from entries field to output in my second form?

Would appreciate a clue about which route to take – thanks in advance.

 

 

I think you'll need to create a custom shortcode for this. Here are WP instructions on doing so.
http://codex.wordpress.org/Function_Reference/add_shortcode

Maybe this related post will help?
http://formidablepro.com/help-desk/custom-display-if/

I'll take a look at both of these, have a go, and get back. Thanks 4 cues.

Thanks Stephanie, your response help me piece it together.

So, I adapted the compare shortcode you wrote:

function compare_func($atts,$content=""){
extract(shortcode_atts(array(
'val1' =>'', 'val2' => '')
, $atts));
if($val1 !== $val2)
$content = '';
return $content;
}
add_shortcode('compare', 'compare_func');
Then, in the custom display (125 here refers to the user  id info):

[compare val1="[125 show=big_reader]" val2="yes"]<img src="myimage.jpg">[/compare]

Now I can show a badge (big reader image) when the admin sets the radio button to "yes" to approve the reader as a big reader.

It's probably not really that complicated, but I'm such a learner driver here. I find this forum a great place for L-plates. Happy.

Topic closed.