Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/264.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在PHP回音中重写PHP回音?_Php_Wordpress_Get_Echo - Fatal编程技术网

如何在PHP回音中重写PHP回音?

如何在PHP回音中重写PHP回音?,php,wordpress,get,echo,Php,Wordpress,Get,Echo,我要放置此代码: <?php echo Sabai::_h($entity->getAuthor()->email);?> <?php echo get_avatar( 'email@example.com', 32 ); ?> 在该代码内部: <?php echo Sabai::_h($entity->getAuthor()->email);?> <?php echo get_avatar( 'email@exampl

我要放置此代码:

<?php echo Sabai::_h($entity->getAuthor()->email);?>
<?php echo get_avatar( 'email@example.com', 32 ); ?>

在该代码内部:

<?php echo Sabai::_h($entity->getAuthor()->email);?>
<?php echo get_avatar( 'email@example.com', 32 ); ?>

上面写着
email@example.com
。有人能写下来让我理解吗?

试试这个:

<?php echo get_avatar( Sabai::_h($entity->getAuthor()->email), 32 ); ?>

或:

$email=Sabai::h($entity->getAuthor()->email);

以这种方式尝试。正如奥卡纳尔所说。 以他为例

     echo '<td align="left"><a href="'.url('Forum/create_new_post?topic_id='.$post->topic_id.'&forum_id='.$post->forum_id.'').'"><img src="'.SITE_URL.'/lib/skins/flyeuro/images/forums/t_reply.gif"/></a></td>';
echo';
或者您也可以参考此链接以供参考。


请根据您的代码进行修改。

第一个代码只是将电子邮件放在无图片头像的顶部,也许get_头像功能有问题。你能分享更多关于你的代码的细节吗?我不知道怎么说,我是新来的