When using the “image” type custom field, and also having Return Value of “Image URL”, and then in my template using
<img src="<?php the_field('mycustomimage'); ?>">, it’s returning an http URL instead of an https URL, causing mixed content on my site. Other areas of the site are returning an https URL when I use
wp_get_attachment_image_src(); for example.
How do I get it to return an https URL?
You need to the value returned by WP for your site. This is usually done be changing the url of the site under WP settings.