Save attachment ID instead of URL in custom field

At some point in the process you could do the following:

  1. Generate attachment ID from URL, like here
  2. Save attachment ID to custom field value using add_post_meta()
  3. Retrieve attachment using custom field value later with get_post_meta()

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedusedueduedusedueduseduseduedu