wp_get_attachment_image_src() width and height boolean

This sounds like a description of the JetPack’s Photon service. Photon is an image acceleration and modification service for Jetpack-connected WordPress sites. Converted images are cached automatically and served from the WordPress.com CDN. Images can be cropped, resized, and filtered by using a simple API controlled by GET query arguments. When Photon is enabled in … Read more

Adding class to featured image

You can add custom class to post thumbnails. the_post_thumbnail accepts array of attribute $attr where you can specify image class. So your code will be. <div class=”home-featured-img”> <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. the_post_thumbnail( ‘full’, array( ‘class’ => ‘responsive-class’ ) ); // show … Read more

Problem with loading images from child theme CSS file with relevant path

There’s no need for the wp-content/themes path – both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to “where is the CSS file stored”, you inferred that the stylesheet resides in the child theme folder – in … Read more

Bulk image rotation

Yes, this is a known problem between ios devices and WordPress. It’s a real issue due to the high numbers of iPhone/ipad users who also use WordPress, and I’m surprised it hasn’t been addressed in the WordPress core. Looks like it’s still being debated/ worked on here. It’s a question that’s been asked before here. … Read more

Add a new data attribute in tag

I found the solution to add that attribute to the img tag with this function: add_filter(‘the_content’,’new_content’); function new_content($content) { $content = str_replace(‘<img’,'<img data-qazy=”true”‘, $content); return $content; }