這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

User Shortcodes Plus

描述

Add simple user shortcodes to WordPress for displaying information, including custom meta and avatars, for any user.

Available Shortcodes:
– [user_id]
– [user_login]
– [user_email]
– [user_firstname]
– [user_lastname]
– [user_nicename]
– [user_display]
– [user_display_name] (alias)
– [user_registered]
– [user_avatar] (image)
– [user_avatar_url]
– [user_url]
– [user_website] (alias)
– [user_description]
– [user_bio] (alias)

Displaying userdata for another user:

ex. [user_email id=2]

螢幕截圖

  • Shortcodes can be added to any post type via the content editor.
  • Each shortcode is replaced with the user's data, when available.
  • Shortcodes can be inserted using the 'Add User Shortcode' button on the TinyMCE editor.
  • A specific user cna be specified by adding the 'id' attribute to the shortcode.
  • Any user metadata can be displayed using the [user_meta] shortcode with a specified 'key' attribute.

安裝

This section describes how to install the plugin and get it working.

  1. Upload the user-shortcodes-plus directory to your /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add shortcodes to the content of any post type.

常見問題

What shortcodes are supported?

  • [user_id]
  • [user_login]
  • [user_email]
  • [user_firstname]
  • [user_lastname]
  • [user_nicename]
  • [user_display]
  • [user_display_name] (alias)
  • [user_registered]
  • [user_avatar] (image)
  • [user_avatar_url]
  • [user_url]
  • [user_website] (alias)
  • [user_description]
  • [user_bio] (alias)

評價

2020年5月19日
Been using this for several years on our sites and have not had any issues with it, works just as expected and makes your cooler 🙂 Keep up the good work
2020年4月20日
I just needed to show the user name and avatar on a widget and this plugin does that together with more option all straight out of the box.
2019年8月10日 1 reply
Still working.. Please update status for latest wordpress.. Ty so much!
閱讀全部16個評價

貢獻者及開發者

“User Shortcodes Plus” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 User Shortcodes Plus 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0.2

  • Add autocomplete support for the Block Editor (Gutenberg).

2.0.1

  • Fixed a bug with showing the TinyMCE Button on new posts/pages.

2.0.0

  • Add support for [user_url] and [user_website] shortcodes.
  • Add support for [user_description] and [user_bio] shortcodes.
  • Add TinyMCE editor button for easily adding shortcodes.
  • Restructure plugin for extendability.

1.0.1

  • Add support for [user_avatar] and [user_avatar_url].

1.0.0

  • Initial Commit