[Solved] what is the code for WordPress custom size image url [closed]


It seems that you’re using the ACF plugin and then you’re getting icon from ACF fields. as it’s returning the url then you can manage it from the ACF field setting which size you want to return, I think ACF has that option but I am unsure as I haven’t use ACF plugin for many years.

However if you’re somehow working with attachment ids and want to fetch the url using attachment id then you can use wp_get_attachment_image_url or wp_get_attachment_image_src as per requirement.

solved what is the code for WordPress custom size image url [closed]