Linux 软件免费装

Picture Tag

开发者 artilab
更新时间 2026年11月4日 21:21
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

responsive images picture tag

下载

1.2.0 1.4.2 1.5.1 1.3.1 1.5.0 1.0.0 1.1.1 1.1.0 1.4.0 1.4.1 1.3.0

详情介绍:

The Picture Tag plugin allows you to easily integrate responsive <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:

安装:

  1. Upload the plugin files to the /wp-content/plugins/picture-tag directory or install it directly from the WordPress Plugin Repository.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Configure the settings under "Settings > Picture Tag".

升级注意事项:

1.5.1 Fixes file detection on custom uploads directories, missing width/height attributes and cache clearing with object caches.

常见问题:

Does this plugin convert images to WebP or AVIF?

No. Use a conversion plugin (for example WebP Express or CompressX) and set the paths to its output folders in "Settings > Picture Tag".

Why don't my WebP/AVIF images appear right after conversion?

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.

Can I customize the generated <picture> tag?

Yes, the plugin provides options to configure custom paths and add attributes to images.

How do I use the shortcode?

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"]

更新日志:

1.5.1 1.5.0 1.4.2 1.4.1 1.4 1.3.1 1.3.0 1.2.0 1.1.1 1.1.0 1.0.0