Comments (2)
Hey @katerlouis,
Sorry for the delay in response.
You are correct that the wp_get_attachment_image_srcset($attachmentId)
doesn't currently function normally for assets synced with Cloudinary.
We have an internal ticket to analyze and address this behavior in the near future.
Meanwhile, can you please share with us the use case that requires you to make use of this WP function to retrieve the srcset of certain images instead of letting the plugin automatically generate it for you when you have the responsive breakpoints option enabled in your plugin's global transformations page?
from cloudinary_wordpress.
@katerlouis I haven't heard back from you yet, but if adding the images using wp_get_attachment_image()
is an option, then this is the way to go. Using this, it will properly generate the src
and srcset
parameters — that is, using Cloudinary URLs.
from cloudinary_wordpress.
Related Issues (20)
- Can't add an image from Cloudinary to the Image Block HOT 3
- Local URL for media instead of Cloudinary URL in rest api HOT 18
- PHP 8.1 support HOT 4
- Proper image urls don't come through WPGraphQL HOT 7
- Cloudinary URL no returned for background url in css HOT 1
- Cloudinary URLs for WPGraphQL Yoast SEO Addon HOT 4
- Calling wp_calculate_image_srcset in a multisite environment returns the wrong srcset HOT 5
- Bug Report: Cloudinary Version 3.0.2 - cloudinary.openMediaLibrary is not a function HOT 5
- Cloudinary v3.0.4 incompatible with Elementor plugin when saving Chinese text HOT 2
- PHPCompatibiltyWP missing from PHPCS config file HOT 4
- Getting a crash (HTTP ERROR 500) when trying to edit page with WP Bakery and Cloudinary plugin activated HOT 2
- Using cloudinary_wordpress with polylang plugin causes error in the site Editor HOT 3
- Cloudinary urls replaced everywhere in the admin but not when accessing acf fields directly HOT 2
- Old URL used when uploading media from the WordPress APP via the block editor HOT 3
- This is failing and returning notice error HOT 4
- clean_url method no longer exists in Delivery class HOT 4
- Unable to install plugin - class Cloudinary\Utils does not have a method "install" HOT 4
- Responsive mode breakpoints are not the same for landscape and portrait images HOT 5
- 500 error when saving page HOT 5
- Cloudinary Process killed by long process killer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudinary_wordpress.