Image added in custom fields only returning image ID in essential grid skin

Hey,

I created a custom post type called: “Reading List”

This post type has custom fields for things such as: author, book title, link to purchase, and image of cover

I created a custom skin in essential grid to display this information.

I then created custom meta keys within essential grid and used the meta references so they would all link up to the appropriate custom field on the post type.

Everything seems to be working just fine, but I have one issue that I can’t seem to solve.

When I try to display the image, setting the %image% custom meta as the src value for the img tag, it only returns the media ID and not the url for the image.

I went to custom fields and double checked that the return was set to “image url”, not array or media ID. but it’s still not working.

Anyone know how to fix this?

Hello Brian,

Thanks for writing in! By default the custom fields will only saved the image ID and not the exact url of the image. Please make sure that your image custom field is set as text field instead and supply the image url for your image custom field.

If you wouldn’t mind, please provide us access to your site so that we can check the settings.

Regards.

1 Like

Thanks for reply.

That works out, thanks so much.

I was hoping I could just use the “image” field type in ACF, but using text input and inserting the url instead is a smart fix.

Thanks again!

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.