Articles of images

After Migration, images show up on a preview of the page but not the actual page

I’m helping out with a website that got a little bit broken when they changed hosts. The images stopped working for some parts of the website, so I am going through and trying to fix them. I somehow managed to fix them in a way that it works when I preview the changes to the […]

attach unattached featured images to respective posts

So, somehow after many migrations i ended up with thousands of featured images that are unattached. They exist in the media library and are used as featured images of the articles but they are not attached to those articles. In other words their post_parent = 0. I need a way to reattach those images to […]

How to set a Background image in WordPress?

I want to set a background image (jpeg) for my home page only and not for the whole site. Right now it is white color for the whole site. This is the code in function.php: // Background color $background_args = array( ‘default-color’ => ‘ffffff’, ); add_theme_support( ‘custom-background’, $background_args );

using wp_get_attachment_image_src in foreach loop

I have 10 images added to a post via Advanced Custom Fields, they’re named from 1 to 10 e.g ‘image_*’, ACF is set to return the ID. I’m trying to get the full size image URL of each image in the loop and use it as a href attribute to open a full size popup […]

Make insterted image point to post url instead of attachment page

I am inserting an image in a post and I want it to point to the post detail page, not the attachment. What should I do? Thanks in advance.

Copying post thumbnail to custom field

I’ve just moved to another theme, and it uses the custom field bigimage for associating an image with a post, instead of using WordPress’s post thumbnails. How do I copy the URLs of all existing post-thumnails to their corresponding post’s bigimage custom field? Could we possibly write a bunch of MySQL statements to achieve this?

Can we use featured image as third party website image URL

In my case we are getting some post list from third party and import in our custom post type. My question is, Is we can use post featured image as third party website image URL instead of upload featured image.

How Do I Link My Whole Featured Article Image?

I’m using the Front Slider plugin to display featured articles on my site. I’ve done some editing to the plugin to make it look the way I want. Somewhere along the way, I must have missed changing a value, because the top half to the image for the article being displayed links to the article […]

In creating a theme, how can i allow a user to change an image outside post/page content?

I’m creating a theme for a particular WordPress site. There’s one spot in the sidebar that displays a photo. The user might want to change the photo once a week. He doesn’t want to use FTP to upload the new photo, or edit any theme files. How can I set up the theme so he […]

Understanding WordPress image sizes and responsive images

I just can’t understand how add_image_size() and responsive images work. So let’s say I have a thumbnail like 720×360. So I’m assuming I need to add the size add_image_size(‘post-thumbnail’, 720, 320, true) //hard crop I upload image with the dimensions of 3000×2000 to accommodate for retina screens, etc. Now I’m adding it to the page […]