| 开发者 | barb0ss |
|---|---|
| 更新时间 | 2026年7月24日 23:38 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
<picture> markup across blocks, featured images, and theme image functions.
<picture> output via core WordPress filterswp_content_img_tagmedia_pair_get_picture() helper for themes and ACF blocksmedia-pair folder to /wp-content/plugins/Core WordPress image filters cover many cases, but page builders that render images outside WordPress attachment APIs — including Elementor widgets — may not pick up paired output. Test your specific layout after pairing.
Confirm that Enable Media Pair is turned on under Settings → Media Pair, that the desktop image has a saved mobile pair in the Media Library, and that the frontend actually uses that attachment (not a hard-coded URL or external image). Clear any page, CDN, or browser cache and retest at a viewport below your breakpoint.
No. Media Pair is built for art direction — a separate mobile composition cropped or designed for smaller screens. The plugin requires a different attachment for the mobile variant.
No. Pairing is stored on the attachment itself. Once saved in the Media Library, every use of that image across your site can output the paired markup automatically.