开发者

Display author URL in single.php

开发者 https://www.devze.com 2022-12-12 11:56 出处:网络
How can I display the author website in \'single.php\' template, only if the author has entered a URL in her/his profile.

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

精彩评论

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