2 votes
Accepted

Update media library image shown in "attachment details" when using wp_insert_attachment to add item to the media library

Hello Mike can you check that folder is the image is there which you have uploaded and if yes then when you click on attachment details then on right there is a key which shows File URL: can you check ...
user avatar
  • 221
1 vote

How to get comment images stored as serialized comment meta

What you get is fine, it's the image id, now you just need to loop them and output the structure that you want, for example. if (!empty($images = get_comment_meta( $comment->comment_ID , 'reviews-...
user avatar
1 vote
Accepted

Set term on an attachment using wp_set_object_terms and want to display the full term text but it's showing a slug instead

When a visitor fills out the email address field with "name@email.com", what is displayed on the Attachment details screen (as in siteurl.com/wp-admin/upload.php?item=xx ) for that email ...
user avatar
  • 31.3k
1 vote
Accepted

How to get an attachment id from a filename

I worked this out eventually by tracing through the code for get_attached_file() to see where it was getting the filename from, and reverse engineered the following: function ...
user avatar
  • 79

Only top scored, non community-wiki answers of a minimum length are eligible