PHP concatenation problem
Posted: Tue Sep 09, 2014 8:11 am
I think this is a concatenation problem...below is my code (used inside Wordpress) but the echo spits out the variable in front of the opening </li>. Am I doing something wrong here?
Here is the output:
Code: Select all
if ( isset ( $fbloop ) && $fbloop ) {
echo '<li class="facebook"><div class="fb-like" data-href="' . the_permalink() . '" data-send="false" data-layout="button_count" data-width="47" data-show-faces="false" data-font="arial"></div></li>';
}
http://spartanmedia.com/use-twitter-like-pro/<li class="facebook"><div class="fb-like" data-href="" data-send="false" data-layout="button_count" data-width="47" data-show-faces="false" data-font="arial"></div></li>