前言介紹
- 這款 WordPress 外掛「WAJ Links」是 2018-11-11 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2019-05-08,距離現在已有 2188 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.9.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
waughjai |
外掛標籤
html | link | auto-generate |
內容簡介
這個外掛包含了六種簡碼 / PHP 類別:
Link
簡碼:[link href="url"]content[/link]
PHP 類別:new WaughJ\HTMLLink\HTMLLink( $href, $content, $other_attributes );
一般連結,網址是直接使用 href 屬性提供的。是其它連結類型的基礎。
content 可以放置在開始和結束標籤中,可以是自己的簡碼,也會被解析。向 PHP 類別中傳遞可以用作字串內容的任何對象,包括其他 HTML 生成器。
可用的屬性包含所有用於 a 標籤的 HTML5 屬性 和 ...:
* anchor 屬性:為 href 添加錨點( # 之後的部分)。
* parameters 屬性:為 href 添加 GET 參數 (例如:?first_parameter = second_value&second_parameter = second_value)
* external 屬性:當值為「 true 」時,會自動添加 HTML 以在新標籤中打開連結並保護其免受攻擊(有關安全問題的更多信息,請參閱 https://www.jitbit.com/alexblog/256-targetblank-the-most-underestimated-vulnerability-ever/)。
Mail-Link
簡碼:[mail-link]email[/mail-link] 或 [mail-link email="email"]給我發電子郵件[/mail-link]。
PHP 類別:new WaughJ\HTMLMailLink\HTMLMailLink( $email, $other_attributes );
生成 mailto 連結。如果只給了電子郵件,內容自動設置為電子郵件。
可用的屬性包括“值” (直接用於 PHP 的內容),a 標籤的所有有效 HTML5 屬性,以及 Link 中提到的 external 屬性。
Phone-Link
簡碼:[phone-link]phone number[/phone-link] 或 [phone-link tel="phone"]立即聯繫我們![/phone-link]。
PHP 類別:new WaughJ\HTMLPhoneLink\HTMLPhoneLink( $phone_number, $other_attributes );
生成 tel 連結。如果只給了電話號碼,內容自動設置為電話號碼。
可用的屬性包括“值” (直接用於 PHP 的內容),a 標籤的所有有效 HTML5 屬性,以及 Link 中提到的 external 屬性。
Post-Link
簡碼:[post-link slug="post-slug"] 或 [post-link slug="post-slug" post_type="specific-post-type"][post-link post_id="post-id"]閱讀此文章[/post-link]。
PHP 類別:new WaughJ\WPPostLink\WPPostLink( $attributes );
根據 slug 或 post_id 生成到文章的連結,或使用 PHP 類別時,post 對象本身類型為“post”。
此外,您可以添加所有常規 Link 類和簡碼可以使用的屬性。
Home-Link
簡碼:[home-link] 或 [home-link]造訪我們的主頁[/home-link]。
PHP 類別:new WaughJ\WPHomeLink\WPHomeLink( $attributes );
自動生成指向 WordPress 首頁的鏈接。代表鏈接的內容默認為首頁的名稱。所有替代屬性與常規 Link 類和簡碼相同。
Category Link
簡碼:[category-link slug="category-slug"] 或 [category-link category_id="category-id"]鏈接內容[/category-link]。
PHP 類別:new WaughJ\WPCategoryLink\WPCategoryLink( $attributes );
自動產生到分類頁面的連結。使用 slug 或 category_id 屬性獲取分類。使用常規 Link 類中的內容和可選屬性添加內容。
Tag Link
簡碼:[tag-link slug="category-slug"] 或 [tag-link slug="category-slug"]鏈接內容[/tag-link]。
PHP 類別:
原文外掛簡介
This plugin includes 6 types o’ shortcodes / PHP classes:
Link
Shortcode: [link href=”url”]content[/link]
PHP Class: new WaughJ\HTMLLink\HTMLLink( $href, $content, $other_attributes );
General link where the link href given is used directly as the href. The backbone o’ all the other link types.
Content, when put ‘tween opening & closing tags, can be a shortcode o’ its own, which will be interpreted, too. When used as a PHP class, you can push any object that can be used as a string as content, including other HTML generators.
Valid attributes include all valid HTML5 attributes for the a tag, as well as…
* an “anchor” attribute that adds an anchor to the href ( the part after the # ).
* a “parameters” attribute that adds GET parameters to the href ( i.e. ?first_parameter=second_value&second_parameter=second_value )
* an “external” attribute, which, when set to “true”, automatically adds HTML to make the link open in a new tab & protect it from hacking. ( See https://www.jitbit.com/alexblog/256-targetblank—the-most-underestimated-vulnerability-ever/ for mo’ info on security concerns ).
Mail-Link
Shortcode: [mail-link]email[/mail-link] or [mail-link email=”email”]Email Me.[/mail-link]
PHP Class: new WaughJ\HTMLMailLink\HTMLMailLink( $email, $other_attributes );
Generates mailto link. If just email given, content automatically set to email.
Valid attributes include “value” for content ( for the direct PHP use ). all valid HTML5 attributes for the a tag, as well as the external attribute mentioned under Link.
Phone-Link
Shortcode: [phone-link]phone number[/phone-link] or [phone-link tel=”phone”]Call us now![/phone-link]
PHP Class: new WaughJ\HTMLPhoneLink\HTMLPhoneLink( $phone_number, $other_attributes );
Generates tel link. If just phone # is given, content automatically set to phone #.
Valid attributes include “value” for content ( for the direct PHP use ). all valid HTML5 attributes for the a tag, as well as the external attribute mentioned under Link.
Post-Link
Shortcode: [post-link slug=”post-slug”] or [post-link slug=”post-slug” post_type=”specific-post-type”] [post-link post_id=”post-id”]Read this post[/post-link]
PHP Class: new WaughJ\WPPostLink\WPPostLink( $attributes );
Generates a link to a post, based on slug or post_id, or, if using the PHP class, the post object itself under “post”.
In addition, you can add all the attributes you can for the regular Link class & shortcode.
Home-Link
Shortcode: [home-link] or [home-link]Visit our home page.[/home-link]
PHP Class: new WaughJ\WPHomeLink\WPHomeLink( $attributes );
Automatically generates link to WordPress front page. Content that represents link defaults to name o’ front page. All alternative attributes done the same as regular Link class & shortcode.
Category Link
Shortcode: [category-link slug=”category-slug”] or [category-link category_id=”category-id”]Link content[/category-link]
PHP Class: new WaughJ\WPCategoryLink\WPCategoryLink( $attributes );
Automatically generates link to category page. Use slug or category_id attributes to get category. Content & optional attributes added the same way as regular Link class.
Tag Link
Shortcode: [tag-link slug=”category-slug”] or [tag-link slug=”category-slug”]Link content[/tag-link]
PHP Class: new WaughJ\WPTagLink\WPTagLink( $attributes );
Automatically generates link to tag page. Use slug to get tag. Content & optional attributes added the same way as regular Link class.
Media Link
Shortcode: [media-link media_id=””]Link content[/media-link] or [media-link media-id=””]Link content[/media-link] or [media-link media-id=”” value=”Link content”]
PHP Class: new WaughJ\WPMediaLink\WPMediaLink( $id, $content, $attributes );
Automatically generates link to media item. Content must be set or shortcode won’t work. Shortcode content can be put as content, too. For example, if WAJ Images is installed, you can do the common technique o’ an image link with:
[media-link media-id=”1″][upload-image id=”1″][/media-link]
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WAJ Links」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | 1.3.0 | trunk |
延伸相關外掛(你可能也想知道)
Page Links To 》這個外掛可以讓你將 WordPress 的頁面(或文章或自訂文章類型)連結至你選擇的 URL,而非 WordPress 的 URL。此外,它還會將前往舊的 URL(或「正常」的 URL...。
Custom Post Type Permalinks 》自訂文章類型永久連結允許您編輯自訂文章類型的永久連結結構。, 更改自訂分類目錄的永久鏈接,以“example.org/post_type/taxonomy_name/term_slug̶...。
Custom Permalinks 》name or slug), add the filter that looks like this:, function yasglobal_exclude_posts( $post ) {, // Replace '2' with ID of the post you want to ...。
VK Link Target Controller 》外掛介紹, VK Link Target Controller 外掛可在最近文章列表或存檔頁面中,讓使用者點選文章標題時轉址到其他網頁而非文章內容頁面。, 使用範例, 假設你在 eB...。
Title and Nofollow For Links (Classic Editor) 》這個外掛程式在插入連結彈出框中恢復了 WordPress 4.2 中刪除的「Title」欄位,並新增了一個「將連結加上 rel="nofollow"」的勾選框。, Gutengerg(區塊編輯...。
Flexy Breadcrumb 》PressTigers 的 Flexy Breadcrumb 是一個簡單而強大的麵包屑導覽系統外掛,適用於 WordPress 網站。使用此外掛,您可以透過 [flexy_breadcrumb] 短碼在網站的...。
Nofollow for external link 》這個外掛可以自動為您網站文章、頁面或主題菜單中所有外部連結插入 rel=nofollow 和 target=_blank。, 您也可以設置要排除的域名,選擇不為特定外部連結添加 ...。
Link Library 》此外掛用於在您的網站上建立一個頁面,列出 WordPress 管理介面內的 "連結" 部分中所定義的所有連結分類及其內所包含的所有連結。使用者可以選擇是否顯示某些...。
Link Juice Keeper 》錯誤 404 ( 找不到頁面 ) 很常見,也是造成搜尋引擎,例如 Google,把網站排名降低的主要原因之一。處理 404 錯誤對於非技術人員來說可能相當複雜。有了這個...。
rus to lat advanced 》這款 WordPress 外掛將俄文標題的文件名和連結(從標題中建立)轉換為拉丁字母。俄文標題的文件名和連結在 WordPress 中儲存時經常是不正確的。, 例如,在標...。
Custom Meta Widget 》這個外掛的功能和 WordPress 標準的 Meta widget 完全相同,除了它增加了選項來控制要顯示哪些 5 個標準的 Meta widget 連結,並提供一個新增自訂連結的選項...。
Autologin Links 》這個外掛讓管理員可以為其 WordPress 網站生成自動登入連結,並以特定使用者名稱登入訪客。管理員可以編輯(生成和刪除)使用者的自動登入連結,而使用者只能...。
Track The Click 》追踪點擊次數, Track The Click 外掛能夠幫助網站擁有者更好地了解網站訪客與網站上連結的互動情形。這款外掛主要功能是即時追踪 WordPress 網站上發生的點擊...。
Sape – website monetization 》這個外掛程式能夠自動將 Sape 系統的程式碼安裝到網站上。, 這是一個從 Sape 取得利益的網站收益外掛程式。此外掛支援以下的網站收益方式:, , 租借連結, 全...。
Ambrosite Next/Previous Post Link Plus 》重要提示:請確保使用正確的外掛程式。, , Next/Previous Post Link Plus 外掛程式適用於單篇文章模板。, Next/Previous Page Link Plus 外掛程式適用於頁面...。