內容簡介
這個 WPZA 的外掛為你的網站提供一個短代碼,以顯示 AMP 圖片,而不是使用 WordPress 標準的 HTML img 標籤。
短代碼使用方法
為了插入圖片,你必須使用 image 屬性,如下:[amp-img image="https://wpza.net/example-image.jpg"]
為了插入替代文字,你必須使用 alt 屬性,如下:[amp-img image="https://wpza.net/example-image.jpg" alt="Example image alt text"]
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This plugin from WPZA provides your website with a shortcode to display AMP images, rather than using the standard HTML img tags in WordPress.
Shortcode usage
To insert the image, you must use the image attribute as such: [amp-img image="https://wpza.net/example-image.jpg"]
To insert the alt text, you must use the alt attribute as such: [amp-img image="https://wpza.net/example-image.jpg" alt="Example image alt text"]
