Any incompabilities with plugins?
-
Hi.
Is there any incompabilities with other plugins?
It does not seems to work in my case. There are no one image with “srcset” attribute. Plugin settings is default. I’ve tried on different websites with different environments. But plugin set was similar, like w3 total cache. So should that work with caching/performance-related plugins?
Sincerely,
Alex.
-
Hi Alex!
No, not that I’m aware of. I’ve used it on sites with W3 total cache and I haven’t noticed any issues.
Have you tried switching to the picture element instead of <img>? Just so we can verify that something actually happens.Just checked with picture mode – the result is same. No pictures affected. Something happens… wp-content/plugins/responsify-wp/src/picturefill.2.2.0.min.js is added to the load, but it looks like plugin do not see pictures (images). The same with span mode.
Very interesting I must say! Can you try generating an image with the Picture::create() function?
<?php echo Picture::create( 'element', $some_attachment_id );?>This way it works fine (outputs image correctly), but it’s with Picture mode. When i switch to basic img src – for some reason it ignores the choice and still shows <picture> – strange. Even if i change attachment ID (so it’s not the cache).
So this works?
<?php echo Picture::create( 'element', $attachment_id );?>
But not this?
<?php echo Picture::create( 'img', $attachment_id );?>
Very, very strange. Are you using the latest version of the plugin and a fairly new version of WordPress? PHP 5.3 or higher?Oh, no, sorry – i was thinking plugin settings affect Picture:: code too. Understood now.
Both lines you mention works correctly.Just it does not work automatically for all images.
I am using latest WordPress version 4.1 and PHP 5.5.20-1~dotdeb.1 with Zend OPcache v7.0.4-dev opcode caching/optimizer. Can give you link to website and phpinfo with private message but i can’t find that feature here at forum 🙂
Okey, that’s a good sign that those functions worked! 🙂
Just to be sure, the images that doesn’t work are being printed by thethe_content()function, right?You mean that for plugin to affect images they should all be initiated by the_content() function? Why not to make it just work for all images?
Yeah the plugin can only affect images that are uploaded from the editor inside WP. The content must be printed with the regular WordPress loop.
That’s a little bit crazy. I think it’s possible to catch all images. Well, thanks for support 🙂 It’s not useful without affecting all images.
Haha, is it really crazy? 😉 But now you’re making me curious! It sounds that you’re not working with posts/pages/custom post types in the regular way, so how are you building sites?
I want my plugin to be powerful and highly flexible/customisable, so I wonder how it could fit into your scenario 🙂This exact website have posts = youtube videos. Images are automatically generated picture of youtube video (one frame) and are showing as a thumbnails by plugins. So these images are not uploaded from the editor and is not optimized by your plugin. There are also some basic pictures from theme and custom pictures in header like logo, but as you, once again, rely on “Uploaded pictures”, these are also not being processed.
You can fit any scenario by simply change plugin to search for all images (as an option?) with something unusual like parsing HTML or similar (because i doubt that all images can be catched using build-in functions).
I see, thanks for the explanation.
Another reason that I realies on uploaded images for is that RWP uses the various sizes of the image that’s being generated.medium.jpgis being replaced bylarge.jpgwhen it fits the screen and so on…
If it should affect all images on the site, RWP must also generate these different image sizes. How many sizes? Which sizes? It’s a lot of stuff that has to happen in that scenario and it might not fit the design of the site at all.
Relying on image sizes that are specified by the actual user feels much more secure 😉Anyway, it doesn’t seams like RWP is the right choice for you I’m afraid. But it is however interesting to hear different approaches on building WordPress sites 🙂
The topic ‘Any incompabilities with plugins?’ is closed to new replies.