我想要循环之外的作者页面链接?请有人告诉我 Wordpress 的功能吗?
问问题
3569 次
3 回答
4
于 2012-07-09T10:59:36.943 回答
2
使用get_author_posts_url()
函数在循环之外获取作者链接。
global $post;
$author_id=$post->post_author;
echo get_author_posts_url($author_id);
于 2018-01-25T10:44:16.070 回答
0
If you're just wanting a link to a specific author page, you can use yourwebsite.com/?author=23 (this would be a link to author number 23).
You can find the author number by looking in the wordpress backend, under users > all users, then hovering over the one you're wanting to link to.
于 2012-07-09T09:29:07.403 回答