• Resolved sonmar

    (@soniamariano)


    Hi,
    I have an ACF image field and I need to get the image url with size options (thumbnail, medium, etc.).
    Using [field image=my-image-field size=thumbnail] gives me the image inserted inside an < img > tag and I need to have just the image url, but of a specific size.
    Is there a way for me to accomplish this?
    Thanks in advance!

    • This topic was modified 4 years, 1 month ago by sonmar.
    • This topic was modified 4 years, 1 month ago by sonmar.
Viewing 2 replies - 1 through 2 (of 2 total)
  • There are many ways.

    – try [field image=my-image-field size=thumbnail return=url]
    – Add the needed size into the inmage-url
    – Use [format split] to extract the url from image field output

    Thread Starter sonmar

    (@soniamariano)

    Thank you @polarracing. My bad for not reading the documentation carefully enough, I went trough it once more and ended up finding the return=url option.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ACF image field link (url) with size option’ is closed to new replies.