1

Question is about Wordpress template file author.php.

At author.php, I need to output author ID, to get more info, but I cant do that. Maybe someone can help ? Example: http://www.domain.com/?author=1 Need to output Author ID: 1

http://www.domain.com/?author=2 Need to output Author ID 2

4

1 回答 1

0

查看法典作者模板部分的作者信息设置部分。初始化$curauth后,您应该可以使用$curauth->ID.

于 2012-07-12T06:27:25.177 回答