[wordpress插件] author-avatar作者头像

wordpress 插件 文章 2020-02-23 11:20 643 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Add an upload field in the user profile admin – Don’t want to use gravatar profile picture, or just don’t have one, just download this plugin.

在用户个人资料管理员中添加一个上传字段-不想使用gravatar个人资料图片,或者只是没有人,只需下载此插件即可。

It will add a custom field in the user admin with the possibility to upload your own.

它将在用户admin中添加一个自定义字段,并可以上传您自己的字段。

Once uploaded, it will add the picture url inside the usermeta table so you can easily display it with get_the_author_meta .

上载后,它将在usermeta表中添加图片网址,因此您可以轻松地通过 get_the_author_meta 显示它。

Translation ready and already available in French.

已准备好翻译,并且已经提供法语版本。

    • Easy to use, once activated and your picture uploaded, grab the source url with:

      易于使用,一旦激活并上传了图片,请使用以下网址获取源网址:

    Just add an image tag where you want the picture to be displayed like so:

    只需在要显示图片的位置添加一个图像标签,如下所示:

     My Custom user Profile Picture

      ” alt =“我的自定义用户个人资料图片”>

    Et voilà!

    等等!

安装步骤

    1. Upload “ to the /wp-content/plugins/ directory
    2. 将“上传”到 / wp-content / plugins / 目录

    3. Activate the plugin through the “Plugins” menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. grab the source url with $user_meta_image = esc_attr( get_the_author_meta( 'user_meta_image', get_the_id() ) );.

    6. 使用 $ user_meta_image = esc_attr(get_the_author_meta('user_meta_image',get_the_id())); 来获取源URL。

      Just add an image tag where you want the picture to be displayed like so: My Custom user Profile Picture

      只需在要显示图片的位置添加一个图像标签,如下所示: ” alt =“我的自定义用户个人资料图片”>

      li>

      li>

    7. Style as you wish.
    8. 您想要的样式。

下载地址
https://downloads.wordpress.org/plugin/author-avatar.1.0.2.zip
-EOF-

AI助手支持GPT4.0