How do I track down the origin of the alt text on a particular image?

The answer was right under my nose. Right there in the WordPress editor was the relevant line of HTML code (placed there by the plugin “Toolset Types”): <a href=”http://horizon-residence.com/”>[types field=”horizon-residences-banner” alt=”Horizon Residence condominium” title=”Horizon Residences” size=”full” align=”left”][/types]</a> It was there that I could change the title, and in-turn, the alt text (since the title was … Read more

Is it ok to paste a WordPress Image URL into a post?

There is no actual problem of copying any link to the content. WordPress itself actually has an option for this. If you want to paste a URL, use this feature instead. You can add a media from URL in the Add media screen. Click the Add media button in the visual editor, and then choose … Read more

How to add an image to a custom url?

Upload an image to the Media Library like usual. Go into Settings > Media and untick the box that says: Organise my uploads into month- and year-based folders Then add the following line to your wp-config.php file: define( ‘UPLOADS’, ‘images/’.’files’ );

How to use thumbnail size of image if I’m only using src to get image

Since you are using get_sub_field() i assume you are inside a have_rows() (a repeater), in theory it should work like this: $image = get_sub_field(‘image’); <img src=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“url’]; ?>” alt=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“alt’] ?>” /> and this is what you can get: $image[‘url’] //this is the full image echo $image[‘sizes’][‘medium’]; //medium image echo $image[‘sizes’][‘thumbnail’]; //thumbnail image … Read more