Support

Account

Home Forums ACF PRO Attachment ID from Icon Picker

Unread

Attachment ID from Icon Picker

  • Hello friends,
    I tried the Icon Picker field and it’s documentation, but I found something may be a mistake.
    If you are using return type of “Array” instead of “String”, when you add value from (Media Library) the Attachment ID code (( $attachment_id = $icon[‘value’]; )) is not true, I used (( $attachment_id = $icon[‘value’][‘id’]; )) because the ” $attachment_id = $icon[‘value’]; ” is an Array not a single value.

    This topic is just for helping.

    Thank you.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.