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 […]
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 […]
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 );
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 […]
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.
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?
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.
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 […]
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 […]
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 […]