中易网

云典 wordpress 怎么样

答案:2  悬赏:30  
解决时间 2021-04-28 03:13
  • 提问者网友:你在我心中是最美
  • 2021-04-27 07:29
云典 wordpress 怎么样
最佳答案
  • 二级知识专家网友:寂寞的炫耀
  • 2021-04-27 08:08
WordPress

先判断下是否登录,然后获取当前用户对象,然后获取当前用户对象的信息,需要哪些用哪些:

1
2
3
4
5
6
7
8
9
10
11
12
13
14

if(is_user_logged_in()){
$current_user = wp_get_current_user();

echo 'Username: ' . $current_user->user_login . '
';
echo 'User email: ' . $current_user->user_email . '
';
echo 'User first name: ' . $current_user->user_firstname . '
';
echo 'User last name: ' . $current_user->user_lastname . '
';
echo 'User display name: ' . $current_user->display_name . '
';
echo 'User ID: ' . $current_user->ID . '
';
}
全部回答
  • 1楼网友:木子香沫兮
  • 2021-04-27 08:19
<p>出现这种情况的话,那就是你的模板css样式没有设置好了,你看看模板的css样式是否统一</p>  <p>修改下原来的css样式,应该就可以了</p>  <p>&nbsp;</p>  <p>参考:<a href="http://wenwen.soso.com/z/urlalertpage.e?sp=swww.wordpress.la" target="_blank">www.wordpress.la</a></p>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息