[WordPress] 外掛分享: Author Image

前言介紹

  • 這款 WordPress 外掛「Author Image」是 2008-12-03 上架。
  • 目前有 2000 個安裝啟用數。
  • 上一次更新是 2017-11-28,距離現在已有 2714 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mike_koepke | denis-de-bernardy |

外掛標籤

author | semiologic | author-image |

內容簡介

WordPress 的作者圖像外掛可讓您輕鬆地在網站上添加作者圖像。

它創建了一個小工具,您可以將其插入側邊欄或任何其他主題允許的小工具區域。
現在,該插件支援一個名為 [author-image] 的短代碼,您可以使用它直接將圖像添加到頁面或文章中。

另外,您可以在循環中添加以下呼叫,以在希望出現作者圖像的位置放置:

此 $author_id 參數是可選的。如果沒有傳入,代碼將嘗試獲取頁面/文章的當前作者。

此功能的第二個版本適用於您可以傳入寬度和高度以顯示圖像的場景。

此 $author_id 參數是可選的。如果沒有傳入,代碼將嘗試獲取頁面/文章的當前作者。

要配置您的作者圖像,請瀏覽管理區中的用戶/您的個人資料。

設置作者圖像大小

您可以在作者圖像小工具或使用 the_author_image_size 函数呼叫中調整實際顯示大小。

如果您未指定大小,將使用實際圖像的寬度和高度。

短代碼

您可以使用 [author-image] 在您的頁面或文章內容中顯示已上傳的作者圖像。

作者簡介

您可以配置小工具以顯示作者的簡介,除了他的圖像之外。

這適用於在側邊欄中放置作者圖像的網站,或在小工具緊跟文章內容後放置的 Semiologic 主題,即 “關於作者。”

Gravatar 支持

上傳的圖像將用作您的 gravatar,由調用 get_avatar() 函數的主題使用。這將覆蓋在 gravatar.com 上設置的圖像。

多作者站點

對於有許多作者的站點,該小工具提供了在作者的文章 — 他的存檔中插入一個鏈接的功能。

單個作者站點

通常情況下,小工具僅在能夠明確識別內容作者是誰的情況下才會顯示作者圖像。換句話說,在單數頁面或循環中。

如果您運行單一作者站點或多個隱形作者的站點,請務必檢查 “該站點僅有一名作者” 選項。小工具將隨時輸出您的圖像。

替代關於頁面鏈接

通常,如果單擊圖像,小工具將使用作者的文章頁面(/author/authorname/)。如果您的站點有一個為作者提供的專門頁面,例如「關於我」頁面,

則在 「您的個人檔案」 中有一個名為 「關於我頁面」 的新領域,輸入此領域中的 URL(/about-me/),將使小工具使用此鏈接而非 /author/authorname。

檢索作者 URL

您可以通過調用函數來檢索對應作者圖像的 URL

如果 $author_id 為空白,該插件將嘗試確定當前作者並檢索其圖像。

求救!

插件的 論壇 是報告問題的最佳地點。

特別感謝

感謝 Daniel J. Schneider 為 author_image_url 功能的貢獻。

原文外掛簡介

The Author Image plugin for WordPress lets you easily add author images on your site.
It creates a widget that you can insert in a sidebar or any other widget area allowed by your theme.
The plugin now supports a short code [author-image] you cna use to directly add the image to the page or post content.
Alternatively, you can place the following call in the loop where you want the author image to appear:

This $author_id parameter is optional. If it is not passed in, the code will attempt to get the current author of the page/post.

A second version of this function exists whereby you can pass in width and height to display the image.

This $author_id parameter is optional. If it is not passed in, the code will attempt to get the current author of the page/post.

To configure your author image, browse Users / Your Profile in the admin area.
Setting Author Image Size
You can adjust the actual display size in the Author Image widget or by using the_author_image_size function call.
If you do not specify a size the width and height of the actual image will be used.
Shortcode
You can use [author-image] to display the uploaded author image in your page/post content.
Author’s Bio
You can configure the widget so it outputs the author’s description in addition to his image.
This fits well on a site where the author’s image is placed in a sidebar, or the Semiologic theme when the widget is placed immediately after the posts’ content — i.e. “About The Author.”
Gravatar Support
The uploaded image will be used as your gravatar by themes that call the get_avatar() function. This will override an image set on gravatar.com
Multi-Author Sites
For sites with multitudes of authors, the widget offers the ability to insert a link to the author’s posts — his archives.
Single Author Sites
Normally the widget will only display an author image when it can clearly identify who the content’s author actually is. In other words, on singular pages or in the loop.
If you run a single author site, or a site with multiple ghost writers, be sure to check the “This site has a single author” option. The widget will then output your image at all times.
Alternate About Page Link
Normally the widget will use the author’s posts page (/author/authorname/) is the image is clicked on. If your site has a dedicated page for the author, such as an ‘About Me’ page,
there is a new field in ‘Your Profile’ called ‘About Me Page’. Entering a url in this field (/about-me/) will cause the widget to use this link as opposed to /author/authorname.
Retrieving Author Url
You can retrieve the url to the respective author image by calling the function

If $author_id is blank the plugin will attempt to determine the current author and retrieve his/her image.
Help Me!
The Plugin’s Forum is the best place to report issues.
Credits
Props to By Daniel J. Schneider for author_image_url functionality

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Author Image」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


4.2 | 4.3 | 4.4 | 4.5 | 4.6 | 4.7 | 4.8 | 4.9 | 4.5.1 | 4.8.1 | 4.9.1 | 4.9.2 |

延伸相關外掛(你可能也想知道)

  • One User Avatar | User Profile Picture 》WordPress 目前只允許您使用透過 Gravatar 上傳的自訂頭像。One User Avatar 讓您使用媒體庫中上傳的任何照片作為頭像。這意味著您可以使用與文章相同的上傳...。
  • Easy Author Image 》Easy Author Image 可以方便地為您的個人資料頁面添加作者圖像,只需安裝此 WordPress 外掛,您的「個人資料」選項卡(位於「使用者」下方)將多了一個名為「...。
  • User Avatar – Reloaded 》WordPress 目前只允許透過 Gravatar 上傳自訂頭像。 WP User Avatar 可讓您使用任何上傳到您的媒體庫中的照片作為頭像,這意味著您可以使用相同的上傳工具和...。
  • Author or User Image 》WordPress作者/使用者圖像讓您設定作者圖像。, 使用此外掛,您可以設定作者的圖像。, 具有刪除使用者圖像或阻止特定使用者的功能(新增)。, 此照片將顯示在...。
  • Profile Xtra 》這個 WordPress 外掛提供了一個讓作者可以在其個人資料頁面上添加一張圖片的功能,並可以在其文章中使用這張圖片作為頭像。此外,作者還可以添加不同的社交網...。

文章
Filter
Apply Filters
Mastodon