You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to give the user the ability to select term meta corresponding to an image in #4, but requiring them to know if the meta value is saved as an attachment ID or not might be asking too much. Instead, we should attempt to auto-detect the meta value format:
If value is numeric, try wp_get_attachment_image_url()
If value is a URL, use it directly
What other ways could an image be stored in term meta?
The text was updated successfully, but these errors were encountered:
I'd like to give the user the ability to select term meta corresponding to an image in #4, but requiring them to know if the meta value is saved as an attachment ID or not might be asking too much. Instead, we should attempt to auto-detect the meta value format:
wp_get_attachment_image_url()
What other ways could an image be stored in term meta?
The text was updated successfully, but these errors were encountered: