內容簡介
在使用者個人資料管理中新增一個上傳欄位 – 不想使用 gravatar 個人資料圖案,或是沒有它,只需要下載此外掛程式。它會在使用者管理中新增一個自訂欄位,允許你上傳自己的圖片。一旦上傳,它將在 usermeta 資料表中新增圖片網址,因此你可以使用 get_the_author_meta 輕鬆顯示它。
支援翻譯且已提供法語版本。
啟用後使用簡單,上傳圖片後使用以下程式碼即可取得圖片連結:
只需在希望顯示圖片的地方添加圖像標籤,如下所示:
<img src="<?php echo $user_meta_image;?>" alt="My Custom user Profile Picture">
Et voilà!(這就是它!)
外掛標籤
開發者團隊
原文外掛簡介
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. It will add a custom field in the user admin with the possibility to upload your own. Once uploaded, it will add the picture url inside the usermeta table so you can easily display it with 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:
Et voilà!
