开发者

Display author URL in single.php

How can I display the author website in 'single.php' template, only if the author has entered a URL in her/his profile.

I'm displaying the URL in 'author.php' but the same code doesn't work in other templates.

Th开发者_开发问答anks


From the WP Forum: Displaying user profile's website field

<a href="<?php echo get_usermeta($post->post_author,'user_url'); ?>">HERE</a>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜