I think I’m getting hung up on this line:
echo substr(strrchr($meta['attachment_content'], "https://wordpress.stackexchange.com/" ), 1);
Yep! Try this version of the description_value
function:
function description_value($column_name, $id) {
echo get_the_content($id);
}
Media items are posts of the type attachment. The description is stored in the post_content property of the post object. You can see all of the fields by doing a print_r( get_post( $id ) );
just in case you wanted to make some other columns. By the way, wp_get_attachment_metadata
will give you access to the EXIF data of the image, which I don’t think you want here.
Related Posts:
- WordPress media uploader – upload tabs not hiding
- Can’t upload format files on media library
- Limit Media Library to Given Folder
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- Hide upload image fields for the different media upload popups
- How to retrieve alt attribute for an attachment (uploaded image)?
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- problem in uploading attachment to custom directory
- Altered Media Library URLs
- Is there a way to limit multi upload in media upload box?
- Organizing the Media Library for Cleanup
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- Upload files in wordpress
- How to Protect Uploads, if User is not Logged In?
- How to Fix HTTP Error When Uploading Images?
- Extend Media Library
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Upload images to remote server
- How to show all available images in WP’s media library when using the Polylang plugin?
- Rename UPLOADS folder with custom WP_CONTENT_DIR
- Which filters or actions to use after a media upload and delete?
- Remote upload file to server B
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to wp_upload_bits() to a sub-folder?
- Change Media Uploader default directory
- Using Images in WordPress – Best Practices
- display image size in media library screen
- How to hide media uploads by other users in the Media menu?
- How to move wp-content (or uploads) outside of the WordPress directory
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Where do the favicons for Media Files come from
- Is it possible to trigger some JavaScript when Media Popup is opened?
- How to call WP3.5 Media Library manager?
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- How to make custom bulk actions work on the media/upload page?
- Password protect some uploaded files, so only logged-in users can view them
- Attach Files Metabox
- Is there a plugin to make attaching images easier?
- How to protect uploads in multisite if user is not logged in?
- Add more rows on media picker
- Append button to WordPress Image Details modal
- Ignore a filter on the media library
- WP3.5 Media Uploader – how to make it accept multiple images?
- Automatically wrap post image in div
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Restricting access to files within a specific folder [duplicate]
- media_handle_upload weird thing
- Looking to display non-image files in Gallery with logo specific to file type
- where can i add custom script to stop header video from autoplay
- Media items hogging pretty permalinks
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- Personalized Gallery what are my options?
- Uploaded images result in a file url with full path on disk appended
- Using WP-CLI “wp media import” to sync files to the media library
- Efficient way to move media folder to another folder
- WordPress append -1 to the image name
- Make inline uploader (plupload) on options page upload to a specific folder
- How to add HTML into error message
- unsharp thumbnails after uploading image
- the temporary save folder is wrong
- Images not displaying on site or media library
- Replicate Media Galley Edit view in Add Media View
- How to Protect Uploads, if User is not Logged In?
- Front-End Upload media with category
- How to manually set an attachment in a post?
- Media Library: Remove replace images of selected author
- Handle image file and save it to media
- Adding attachment custom field metadata to TinyMCE tag
- wp_delete_attachment doesn’t delete image files / doesn’t work
- How to fix custom add menu page preventing media library from loading
- How to upload multiple images using WP rest API to media?
- Media not displaying other users uploads – WordPress 4.9.2
- Unable to delete images in Media Library
- How do I enable the text editer in my WordPress theme? [closed]
- Organising and display thousands of photos in media library
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Insert media while posting is not working with new wordpress update
- controlling whether upload is attached to post or not
- How to split my uploaded media into directories?
- Customizing the built-in Media Playlist
- Missing Images in Uploads Directory (Server Only)
- How can I create more “create attachment” custom field – any idea?
- wordpress 3.6 media manager cropping timestamp
- Broken Media Library
- Custom image sizes ignored in WP 3.5
- WordPress uploads directory. Featured Images storage
- Edit Image/Image Details – Replace button missing
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- Save Custom Meta Value on Media Upload
- Custom Search on media files PDF images pages posts
- What is the proper use of guid for images in wp_posts?
- upload image to wordpress media library failed for custom post type
- Image in binary in the data to WordPress media library
- How can I get the Media Library backend to show larger thumbnails?
- How to Upload a media item with alt text and description
- Different upload file size limits based on file type
- How to disable the PDF preview in the file block by default
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one