这个是我搜到的作者说明页面,其实就是一个小模块,我觉得挺有意思的。
这个是它的html代码
文章发表于本文作者:
| "> | 新浪微博 | 腾讯微博 | 联系站长 |
这个是我的single.php里面的一段代码
echo "\t\t\r\n\t\t\t";_moloader("mo_share");echo "\t\t\r\n\t\t";the_tags("标签:", "", "");echo "\r\n\t\t";_the_ads($name = "ads_post_02", $class = "asb-post asb-post-02");echo "\t\t";echo "\r\n\t\t"; 很明显两种格式不同,求大神教下怎么改动,我尝试了几次都不行,不会改
回复讨论(解决方案)
这样?
echo '';echo '文章发表于'.the_modified_time('Y/n/j').' ';echo ''.get_avatar( get_the_author_email(), '80' ).'';echo '本文作者:'.the_author_posts_link().'
';echo '';echo the_author_description().'
| ';echo ''.bloginfo('name').' | '; echo '新浪微博 | 'echo '腾讯微博 | 'echo '联系站长 |
'echo ''; 晕heredoc搞掂。
这样?
echo '';echo '文章发表于'.the_modified_time('Y/n/j').' ';echo ''.get_avatar( get_the_author_email(), '80' ).'';echo '本文作者:'.the_author_posts_link().'
';echo '';echo the_author_description().'
| ';echo ''.bloginfo('name').' | '; echo '新浪微博 | 'echo '腾讯微博 | 'echo '联系站长 |
'echo ''; 这个方法不行的,我试过了
晕heredoc搞掂。
大神,能详细说说么
晕heredoc搞掂。
谢谢,已经解决啦
没研究过wp,可能是他用的函数你没有,或者css你没引对