Can't get PHP right for page. Please help!
-
Hi,
I’m trying to design a component for a page, and I can’t get the php correct on it. This is the code that I have so far:
<?php $b[1] = echo "<img src=\""; echo bloginfo('template_url') ; echo "/images/topimg.jpg\" alt=\"{$nav_title}\" />"; ?>
I want to call the template url into the line, but I’m missing something apparently. The problem lies in the
$b[1] = echo "<img src=\"";
line. It works fine if I remove the$b[1]
part. This is no good.I can’t get this to work, and I’m tired of trying to figure this out. Can someone help me please?
Thank you
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Can't get PHP right for page. Please help!’ is closed to new replies.