Try using $_POST[‘post_id’] in the upload area as file.php does not include the global $post object.
Related Posts:
- How to remove a column from the Posts page
- Update post counts (published, draft, unattached) in admin interface
- How to display by default only published posts/pages in the admin area?
- Set Default Listing “View” in Admin
- display all posts in wordpress admin
- Sends out email to admin
- Can I force a metabox to be in one column?
- Add a new post status in the post progression
- Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
- Modifying admin sidebar contents to show pending posts indicator
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- using slug instead of ID in admin edit post url
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Add “Post Options” for new wordpress post
- Post Admin – Filter by posts without tags
- Add javascript when post is published
- Why does the_date work in the first custom column, but not in the second, in a series of customized Posts columns?
- Add link on the top menu of the post table?
- Add a special filter link to All Posts in admin
- which action to hook to in order to perform post-publish action
- Make “Post published. View post” Open in a New Tab
- Overview with latest edited posts and pages
- Hiding by default specific post status on backend list?
- Custom colors for post rows based on post meta value
- How to add an admin function only to posts, not pages?
- prevent showing posts of an specific category in admin posts section
- Remove whitespace at the end of posts?
- Allow role to delete posts but block him the wp-admin
- Is there a way to change the color of a row in Post Administration based on the type of post?
- Add filter-by-tag in the all posts admin console page
- How to get a nofication when post submitted
- How do I add a custom body class to the admin area of a page?
- Adding a text link under the post title in the lists of posts
- Is it possible to change the admin posts per page view?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Change default Posts page
- Show info to author only
- Disable inline_edit() on edit.php
- Change target of view link in admin
- Prevent additional top level categories but allow more children
- WP Admin register taxonomy and post type performance
- Publish post’s date is set to Nov 30 -0001
- Admin – create custom post status and display above table
- plugin to post from admin to flickr [closed]
- All Posts admin screen – show time underneath the ‘Date’?
- How to remove specific tag from multiple posts?
- How to detect when admin user is on the All Posts page?
- All posts display default index.html
- How can I add a box to edit Order on a regular post?
- Filtering posts on Post Administration Page by Week Number instead of by Month
- How to add the time of a post to the list of posts on the administration page?
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- How to add convenient buttons for new custom post statuses
- I don’t want the complete article to show on homepage
- After 3.5.1. upgrade, posts appearing on Site yet *NOT* in WP admin!
- Send email to admin with post author
- In admin panel, use a form to create a post?
- Add checkbox in admin post list – show checked post in widget
- Cannot create new posts or upload images using media manager
- Ignore posts content in the posts queries for internal linking
- How do I scope out why I have two “posts” menus in an admin?
- Put page on Archived statut after end of publication date
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- problem with admin panel
- Ajax the create and edit post form into lightbox and get results
- Hide Admin posts & pages in Dashboard
- Creating widget – ask for selecting a post in the admin panel
- issue in wordpress auto delete post and redirect to another 1
- How to change the publishing date of each posts?
- Is possible to create a custom link that creates a post that’s already categorized?
- Why is $_POST Empty in Profile Edit Admin?
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- WordPress Admin Tables in Post View
- Can I hide only one category from admin post list?
- Choose options via url
- Admin moderates ALL comments (including post author)
- Posts in Admin only display 1 Post instead of all
- How to remove a specific script from bulk wordpress posts and images description?
- Post Format Status [closed]
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- generate unique slug while inserting post
- How to show post(excerpt) from specific category on wp page?
- get posts and postmetas in assoc array
- user contributed content as custom post types
- Is 30 posts/sec considered slow for wp_delete_post?
- How to Use PHP Code In-Page?
- Remove certain post-formats from showing in blog?
- Email Post Attachment on wp_insert_post Action
- Automatically attach image to post if they have the same title
- Is there a way to specify an extra class for a post or page with no title?
- How to get different Related Posts
- Using wp-cli and delete everypost first image
- Inserting an example of the last 3 post on to the homepage
- Pagination for normal (standard) posts on a page with a custom loop?
- How to associate a custom taxonomy to a post multiple times
- Can I show category name in url for only one of my categories?
- How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?
- get “read more” with custom DB query like you would with WP Query
- Create custom URL with different levels
- How to use wp_editor(); in functions.php then retrieve content in the template