0

At this moment I am working on a WordPress website. To get the title of the site I am using the next code:

<div class="site-title"><?php bloginfo( 'name' ); ?></div>  

Now I want to put this code/ the result of it in a php table cell, so:

echo "<td align='center' width='50%'>SITENAME</td>"; 

How can I implement/ use that php bloginfo code at the place where currently SITENAME is written?

4

2 回答 2

1

试试喜欢

echo "<td align='center' width='50%'>".bloginfo( 'name' )."</td>"; 
于 2013-08-09T11:02:01.830 回答
1

像这样呼应它

echo "<td align='center' width='50%'>".bloginfo( 'name' )."</td>";
于 2013-08-09T11:02:34.753 回答