get_avatar(1,44,'avatar');才是正确写法。。。
您写的是get_avatar(1,44,avatar);
alt属性不是这么设的...
这么写会报一个Warning: Use of undefined constant avatar - assumed 'avatar' (this will throw an Error in a future version of PHP) in \wp-content\themes\rnmaterial\single.php on line 17
get_avatar(1,44,'avatar');
才是正确写法。。。 您写的是get_avatar(1,44,avatar);
alt属性不是这么设的... 这么写会报一个Warning: Use of undefined constant avatar - assumed 'avatar' (this will throw an Error in a future version of PHP) in \wp-content\themes\rnmaterial\single.php on line 17