I defined a variable called $thumbs_number.
I did var_dump:
string(52) "2"
and print_r
2
It looks like $thumbs_number is 2 right now.
But then I do this:
<?php if ( $thumbs_number == 2 ) : ?>
<span><?php _e( 'two likes' ); ?></span>
<?php else : ?>
<span><?php _e( 'likes' ); ?></span>
<?php endif; ?>
I'm still getting 'likes' not 'two likes'
What I'm doing wrong?
EDIT:
here is the variable comming from:
<?php $thumbs_number = wp_gdsr_render_article_thumbs($template_id = 46, $read_only = false, $stars_set = "", $stars_size = 0, $stars_set_ie6 = "", $echo = false); ?
string(52)says that it's not only"2". Where does this string come from?