Picture Tag

توضیحات

The Picture Tag plugin allows you to easily integrate responsive <picture> tags into your WordPress site. This plugin adds support for generating modern image formats like WebP and AVIF, improving performance and SEO.

Features:
– A function for displaying images using the picture tag.
– Support for WebP and AVIF formats.
– Flexible settings for custom paths and image attributes.
– A shortcode [arti_picture] for inserting responsive tags with customizable attributes.

عکس‌های صفحه

  • Settings Page
    Customize paths for WebP and AVIF image directories.

نصب

  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”.

سوالات متداول

Does this plugin require specific hosting features?

No, the plugin works on any WordPress site. However, to use WebP and AVIF formats, ensure your server supports these formats.

Can I customize the generated “ tag?

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

How do I add a screenshot to the media library?

To add a screenshot or image for use with the plugin:
1. Go to Media > Add New in your WordPress admin dashboard.
2. Upload the desired image (e.g., a screenshot).
3. Once uploaded, note the attachment ID of the image. You can find this in the image URL or by editing the image.
4. Use the attachment ID with the shortcode to display the image in <picture> format.

Example Shortcode:
[arti_picture id="123" size_1x="medium" size_2x="large" alt="Example screenshot" class="screenshot-image"]

نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

توسعه دهندگان و همکاران

“Picture Tag” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Picture Tag” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات

1.4.2 =
* Fix warnings

1.4.1 =
* Fix fatal error

1.4

  • Added improved caching system for better performance
  • Implemented proper cache clearing when media is updated
  • Added cache management tools in the admin interface
  • Enhanced security with proper nonce verification
  • Tested and confirmed compatibility with WordPress 6.8

1.3.1

  • Improved performance by focusing only on local file operations
  • Improved code readability with clearer documentation
  • Fixed potential timeout issues when checking image formats

1.3.0

  • Added support for custom data-* attributes in [arti_picture] shortcode.
  • Added support for custom data-* attributes in the arti_the_image function.

1.2.0

  • Added translation support for multilingual use.
  • Improved text domain loading for better localization.
  • Fixed minor bugs and enhanced compatibility with the latest WordPress versions.

1.1.1

  • Update documentation.

1.1.0

  • Refactoring of the plugin structure to improve the ease of maintenance.
  • Added [arti_picture] shortcode to display responsive <picture> tags.
  • Added documentation on the use of shortcodes.

1.0.0

  • Initial release.
  • Integrated WebP and AVIF format support.