I need to fix the following, could please help me?
$return .= "<a href='<?php echo $kinsource ;?>' class="lightbox" rel="pics"><img src='<?php echo get_bloginfo('template_url')."/timthumb.php?src=".$kinsource."&w=120&h=120&zc=1";?>' alt=""/></a>";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ve got
<?php ?>inside existing PHP code. You cannot nest<?php ?>. Since you are using double quotes, simple variables like$kinsourcewill be interpolated but the function call toget_bloginfo()will have to be concatenated in. Switch all other double quotes inside the string to single quotes.Note, I’ve also surrounded
$kinsourcein{}when it runs into other strings for readability, though it won’t negatively affect the parsing in this situation if that isn’t done.