猿问

wordpress 怎么调用数据库里的某个字段信息

wordpress 怎么调用数据库里的某个字段信息?
我想调用 wp数据库里面的 wp_usermeta表里的meta_value值,图片中红框内的信息怎么用PHP调用?
就是调用头像名字,默认是下面的代码,怎么修改?

<?php echo get_avatar( $current_user->ID, '24' , get_edit_profile_url($current_user->ID) ); ?>

喵喔喔
浏览 764回答 1
1回答

呼唤远方

自己搞定了··· <?php echo get_user_meta(get_current_user_id($user),'um_customize_avatar',true); ?>
随时随地看视频慕课网APP
我要回答