You could hook into 'attachment_fields_to_edit'
and just add a row:
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Show Attachment ID
* Version: 2012.06.04
* Author: Thomas Scholz <[email protected]>
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
if ( ! function_exists( 't5_show_attachment_id' ) )
{
add_filter( 'attachment_fields_to_edit', 't5_show_attachment_id', 10, 2 );
function t5_show_attachment_id( $form_fields, $post )
{
$form_fields['t5_id'] = array (
'label' => 'ID',
'input' => 'html',
'html' => "<strong>$post->ID</strong>",
);
return $form_fields;
}
}
Result:
Related Posts:
- How to get permalink and title from post ID?
- Stop WordPress from reserving slugs for media items?
- Post ID At The End Of Permalink URL Effects Performance (Positively)?
- Post being redirected to attachment post
- Is it possible to list post attachments in a sub URL endpoint with a dedicated template?
- get the_title_attribute by id
- shortcode to output multiple images urls from media library id
- Attachment page 404 not found when image is attached to post
- Image Attachment Url Rewrite
- How to replace “wp-content/blogs.dir” with “media” for attachment permalinks?
- Adding File Extensions to Attachment Page Permalinks
- Page Attachment Permalink Structure based on Menu Order?
- Custom attachment permalink structure [closed]
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- How to link to current post in WordPress?
- Create unique alphanumeric ID on wp_insert_post
- Get new WordPress slug from old wordpress slug
- Making audio playlist by getting page’s parent’s ID
- WordPress basic functions show on top in custom shortcode
- Media/attachment urls don’t redirect with fake URL structure
- Remove “attachment/” from the URL of attachment pages
- Post Title to link to a PDF
- Getting an ID from a URL, why can WP do this itself, but none of of the functions provided get it right?
- Change permalink to attachment
- How do i get post thumbnail using attachment code
- Help me fix these crazy attachment page URLs (rewrite?)
- Shortcodes not working
- How do I rewrite attachment urls when permalink structure contains %category%?
- WordPress Attachment Page URL Rewrite!
- Do shortcodes in title before permalink is generated
- get_attachment_link() adds a hashtag to URL
- get_permalink to attachment not working
- Create a permalink for a post’s attachments
- get_posts displaying wrong permalink for “continue reading” link
- Is it possible to get a page link from its slug?
- Need help with add_rewrite_rule
- After server migration only the homepage works
- remove “index.php” from permalinks
- where is permalink info stored in database?
- Changing permalinks gives me 404 errors on nginx
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Change media item permalink
- Get Permalink without domain (i.e. get relative permalink) [duplicate]
- How does WordPress create URLs that Apache knows about?
- Strange permalink issue: can’t rename /company-2/ to /company/
- Passing and retrieving query vars in wordpress
- Get the current page URL (including pagination)
- Stop WordPress appending `-2` to the end of my url after i change it
- Get default permalink structure from pretty URL’s
- Why is “/page/2/” not working?
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Performance of my permalink structure?
- Permalink format: singular or plural
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- Get current URL (permalink) without /page/{pagenum}/
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- Get page permalink without wpurl
- How can I get the privacy policy page?
- Can I use REST-API on plain permalink format?
- WordPress slug issue with non-latin characters
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to get pretty URLs with add_query_arg in permalinks
- What is the best permalink structure for SEO?
- Change author permalink
- Creating custom permalink structure for languages
- Hide permalink and preview button and link on custom post
- Custom post type permalink endpoint
- Disable Attachment Pages Completely
- How can I make Capital letter ( upper-case ) permalinks?
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- How do I set a custom base URL for standard posts?
- Removing Parent Page(s) from Permalink
- Why permalinks work with /index.php/%postname% but not with just %postname%?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Getting the Site URL Including the Front Base
- Does WordPress Change the .htaccess File When Updating?
- Using $_GET variables in the URL?
- Removing the redirect after changing a page’s slug
- How to display a public profile page for registered users with custom slug?
- Removing leading zeros from custom permalink structure
- Must slugs be unique?
- Setting 404 page in Nginx
- How to get the clean permalink in a draft?
- How to use relative links on my pages?
- How does wordpress keep track of post id when post id is not used in permalinks?
- How to filter to output of the get_permalink() function
- Including category-base in a post permalink results in 404
- How to change ‘with_front” key from an existing custom post type?
- Change slug on post creation
- How to paginate wordpress [gallery] shortcode?
- Does WordPress automatically do 301 redirect if I change permalink
- How can I store page ID in a post instead of other selected permalink?
- WordPress Permalink changes to question mark (?) in URL
- WordPress thinks my custom route is a 404
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Adding another word in front of post url