前言介紹
- 這款 WordPress 外掛「amr shortcode any widget」是 2009-10-23 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 70000 個安裝啟用數。
- 上一次更新是 2021-08-02,距離現在已有 1370 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 有 105 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
anmari |
外掛標籤
page | widget | shortcode | templates | page template |
內容簡介
使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。
首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。
然後將所選小工具拖到名為“用於shortcode的小工具”的側邊欄中。
將do_widget shortcode添加到要顯示小工具的頁面上(或添加do_widget_area)
使用塊編輯器,添加shortcode塊,然後輸入(包括方括號[do_widget widgetname]或從“Shortcodes for Shortcodes”側邊欄中的小工具複製do_widget提示。
請參閱安裝選項卡下的shortcode和參數的詳細信息(取決於插件目錄開發人員最近的操作,這可能在常見問題解答下,或至少在自述文件下)
多次使用小工具?
從do_widget shortcode中引用特定小工具實例,或從do_widget_area shortcode中選擇側邊欄。例如:[do_widget id=widget-n]
例如:您可以在頁面中使用查詢文章小工具來創建存檔,或使用rss小工具列出來自其他站點的餵養內容。有關詳細信息,請參閱anmari.com
該插件的默認操作是它會自動查找您的主題側邊欄的設置並使用側邊欄HTML來控制小工具輸出。在大多數情況下,這意味著小工具將按照您主題的其他部分進行樣式設置。如果效果不佳,則存在參數以嘗試覆蓋此行為。
例如,在2014年的主題中,小工具文本最終成為白色在白色上! widget_classes = none可以解決這個問題。例如:[do_widget widget_classes = none yourwidget]
更改主題並擔心失去側邊欄設置嗎?
沒問題,插件將保存並恢復widgets_for_shortcode設置。在顯示時,它將接收新主題的側邊欄設置。
注意:
請在啟用此插件之前在側邊欄中獲取您的小工具,並請閱讀https://wordpress.org/plugins/amr-shortcode-any-widget/installation/和https://wordpress.org/plugins/amr-shortcode-any-widget/faq/或參見設置頁面。要查看側邊欄中小工具的列表,請將?do_widget_debug添加到帶有do_widget shortcode的頁面中。
原文外掛簡介
Insert a widget or multiple widgets or a entire widget area (sidebar) into a page using a shortcode.
Set up your widget first in a normal sidebar. Check it works.
THEN Drag your chosen widgets to the sidebar called “widgets for shortcode”.
Add the do_widget shortcode to the page where you would like the widget to appear (or the do_widget_area)
To use in the block editor, add a shortcode block, then type in (including the square brackets [do_widget widgetname] or copy the do_widget tip from the widget in the ‘Widgets for Shortcodes’ sidebar.
Please see detailed info on shortcodes and parameters under the installation tab (depending what the plugin directory developers have most recently done, this may be under the FAQ, or at the very least under the readme.)
Using a widget more than once?
Reference a specific widget instance from the do_widget shortcode, or the chosen sidebar from the do_widget_area shortcode. Eg: [do_widget id=widget-n]
For example: You could use the query posts widget in the page to create a archive within a page, or the rss widget to list feed content from other sites. For more details see anmari.com
The plugins default action is that it will magically find the settings for your themes sidebar and use the sidebar html to control the widgets output. In most cases this means the widget will be styled as per the rest of your theme. If that does not look good, parameters exist to try override this behaviour.
EG: in twenty-fourteen theme widget text ends up being white on white! widget_classes=none fixes that. Eg: [do_widget widget_classes=none yourwidget]
Changed your theme and worried about losing the sidebar settings ?
No problem, the plugin will save and restore the widgets_for_shortcode settings. On display it will then pick up the new themes sidebar settings.
Note:
PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and please read https://wordpress.org/plugins/amr-shortcode-any-widget/installation/ and https://wordpress.org/plugins/amr-shortcode-any-widget/faq/ and/or see the settings page. To see a list of your widgets in their sidebars, add ?do_widget_debug to the page with the do_widget shortcode.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「amr shortcode any widget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
3.5 | 3.6 | 3.7 | 3.8 | 3.9 | 4.0 | trunk |
延伸相關外掛(你可能也想知道)
Simple Page Ordering 》這個外掛可以用簡單的拖放操作,讓您對頁面、樹狀自訂文章類型或是擁有「頁面屬性」的自訂文章類型進行排序,只需要使用內建的頁面列表就能完成。, 只要簡單...。
PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
Post Type Switcher 》這個外掛在文章編輯介面中新增了一個簡單的文章型別下拉選單,讓你可以重新指派任何文章至新的文章型別。你可以在編輯文章時更換文章的型別。, 支援的型別, ...。
Page Links To 》這個外掛可以讓你將 WordPress 的頁面(或文章或自訂文章類型)連結至你選擇的 URL,而非 WordPress 的 URL。此外,它還會將前往舊的 URL(或「正常」的 URL...。
Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
Page and Post Clone 》這個外掛可以透過一個按鈕來複製貼文或頁面,現在您不必從零開始進行新頁面或貼文的樣式設計。, 這個外掛的主要功能包括:, , 建立一個頁面複本,保留所有內...。
WP Page Widget 》這款外掛讓小工具的選擇變得更加容易。啟用此外掛後,我們可以選擇要顯示在特定頁面/文章/自訂文章類型中的小工具。, 請注意,使用此外掛時必須啟用側邊欄主題。。
Pages with category and tag 》在頁面中新增分類和標籤。。
CMS Tree Page View 》將所有頁面和自訂文章以 CMS 樹狀概覽方式添加到 WordPress,類似於專注於頁面的 CMS 中經常找到的檢視方式。, 如果您的目標是將多個內容類型合併到單一檢視...。
WP Total Hacks 》WP Total Hacks 可以在您的 WordPress 網站上自訂超過 20 個設置。, 此外掛已在 GitHub 上發布。, 一些功能:, 您可以選擇啟用或停用所有項目。, 需要 PHP5!...。
Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
VK Link Target Controller 》外掛介紹, VK Link Target Controller 外掛可在最近文章列表或存檔頁面中,讓使用者點選文章標題時轉址到其他網頁而非文章內容頁面。, 使用範例, 假設你在 eB...。
Sitemap 》此程式碼已經移至Page-list plugin。請刪除原先的Sitemap外掛程式,並改為安裝Page-list plugin。不用擔心,這兩個外掛程式的功能是相同的。, , 高級 iFrame ...。
WP-Paginate 》最新消息, WP-Paginate 是一個簡單靈活的分頁外掛,可為您的 WordPress 網站提供更好的導覽方式。, 除了提高訪客的使用體驗外,更廣泛的報告顯示,分頁可透過...。