| 开发者 | artilab |
|---|---|
| 更新时间 | 2026年11月4日 21:21 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
<picture> tags into your WordPress site. It adds AVIF and WebP <source> elements for images that already exist on disk, with the original image as a fallback.
The plugin does not convert images itself. Use a conversion plugin such as WebP Express or CompressX, then set the paths to the converted files under "Settings > Picture Tag". A source is added only if the converted file exists.
Features:
[arti_picture] for inserting responsive tags with customizable attributes./wp-content/plugins/picture-tag directory or install it directly from the WordPress Plugin Repository.No. Use a conversion plugin (for example WebP Express or CompressX) and set the paths to its output folders in "Settings > Picture Tag".
The generated HTML is cached for two weeks (filter arti_picture_cache_duration). Click "Clear Image Cache" on the settings page after converting existing images. The cache is also cleared when the paths are changed or an attachment is edited.
<picture> tag?Yes, the plugin provides options to configure custom paths and add attributes to images.
Find the attachment ID of an image in Media > Library (it is shown in the URL when you edit the image), then use it in the shortcode:
[arti_picture id="123" size_1x="medium" size_2x="large" alt="Example screenshot" class="screenshot-image"]
[arti_picture] shortcode is used without attributes.arti_the_image() removed the width, height and decoding attributes, causing layout shift.[arti_picture] shortcode.arti_the_image function.[arti_picture] shortcode to display responsive <picture> tags.