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?
- 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
- 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?
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- Attach Files Metabox
- 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?
- Restricting access to files within a specific folder [duplicate]
- Looking to display non-image files in Gallery with logo specific to file type
- Media items hogging pretty permalinks
- Restrict file types in the uploader of a wp.media frame
- Media library storing files in uploads not folders within in uploads
- What’s the best “insert all images” plugin?
- How to host different file formats/types for a media attachment without creating multiple attachments?
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Different upload path per file type
- Site icons with alpha channel for self-hosted WordPress blog network
- How do I get allowed Media Library upload file extension list?
- Cannot upload .mp3 file to wordpress media
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- Customizing default Mediaelement player
- How to replicate Media Library “Add New” on Plugin Settings Page
- Switch between tabs on “Insert Media” dialog
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Cannot upload anything via wordpress
- How organize uploaded media in WP?
- Add a InfoBox in the media upload window
- Restrict WordPress Media Library for a specific user role (users can only see/select own media)
- Multisite – Images often getting uploaded to the wrong month directory
- wp_generate_attachment_metadata is creating an empty array
- WordPress Issue : The uploaded file could not be moved to wp-content/uploads/
- Using wp_enqueue_media() with switch_to_blog() issue
- Creating subfolders in the media library
- Media library only shows for admin. Doesn’t show editor or below [closed]
- custom upload directory only for plugin uploads
- Redirect to another page using contact form 7? [closed]
- Too slow Image upload in WordPress Media Library as image number increases
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Get images attached to a specific page
- A link (not in the post) to download a specific PDF file
- More Fields & Media Upload
- wp.media issue with selected image
- Is there a way in WordPress to convert images to WebP without a plugin?
- How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?
- How to allow .bin files upload?
- Media Upload not working after hiding some elements from functions.php
- Open Media Uploader Link in single post or page
- Add SWF file to wordpress through custom template
- 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
- WordPress append -1 to the image name
- 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?
- 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
- Media not displaying other users uploads – WordPress 4.9.2
- Unable to delete images in Media Library
- 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?
- Missing Images in Uploads Directory (Server Only)
- WordPress uploads directory. Featured Images storage
- 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