Articles of images

Generating a certain sized thumbnail on the fly?

I’m displaying a picture under each post on my homepage using the following PHP code: <div class=”preview”> <a href=”<?php the_permalink(); ?>” rel=”bookmark” style=”background-image: url(‘<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID), array( 300,300 ), false, ” ); ?>’);”></a> </div> And the following CSS to make it appear at a certain size: .preview a { background-position: 0 50%; background-size: cover; […]

Show more than 200 images in one post

I have gallery post and its have more than 200 pictures in single post. So, when i open this post, Its take more than 2 min to open page, and the images not open fast. What can do ?

Visual Composer creating own shortcodes with vc_map() to return simple Image

I am using the Plugin Visual Composer with in a new Theme I develop. My question is about mapping shortcodes to Visual Composer arrays. The problem I get, when I try to make a custom element for an image. So here is what I did: I created an php file vc_shortcodes.php for my arrays of […]

Prevent images on self-hosted WordPress from being served from

I have created a few posts with featured images on my blog. Since this is self-hosted installation, I was more than sure, that all my files were upload to my server / hosting. But to my extreme surprise, when checking source I have found, that they’re served from (example code: <img src=””>) instead of […]

Whats causing image quality to be degraded?

I’m currently developing a site – – and I’ve been struggling to figure out why image quality is deteriorating in the “product grid” layout (below Newest/Popular/Price/Categories). The original image size when I upload is 460px by 300px. The images in the product grid are set to a proportional size – 394px by 257px, so […]

How do I get a post author's image/avatar via RSS from another blog?

I have 2 websites: one is a company website, the other is a blog for the company – these sites are on separate domains. On the homepage of the company website, there’s a square tile featuring the latest post from the blog, including the blog title (hyperlinked) and the post author’s picture/avatar. To retrieve the […]

Changing Image Size Settings does not show in Image Details

I would like to change the image sizes for “medium” and “large”. I did change the sizes in Settings > Media This however does not seem to have any effect on the settings I see when I edit or insert an image: I did empty cache and reset the browser. I also changed the theme’s […]

Show last 12 uploaded images on home page, but only from posts

I want to show the last 12 images that were published with articles on my front page. This is the code to get the latest 12 uploaded images, but i want to show only the ones attached to a post (single). Any idea? <?php $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => 12, ‘post_status’ => […]

Need to echo category id in multi-dimensional array

I have custom post types and categories created with the Types plugin. I have category images allowed/created with the Categories Images plugin. I have a loop that displays the posts of a category in <li>s. Each <li> has a background style property that needs to get the image assigned to that category. This is my […]

big trouble with javascript

I have some js scripts that are working on my site but I have found that some of the images are not showing up. I only have this issue with WordPress. So I have a pause button that shows as it’s supposed to. When you press the button, it pauses the script as it’s supposed […]