function my_admin_notice(){
global $pagenow;
if ( $pagenow == 'post-new.php' || $pagenow == 'post.php') {
echo '<div class="error">
<p>This notice only appears on the add and edit post & page.</p>
</div>';
}
}
add_action('admin_notices', 'my_admin_notice');
http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices
Related Posts:
- Block editors annoying warnings
- Displaying warning if no featured image has been set – Post Editor
- How To Disable (or Remove) “All Posts, Published, and Trash” in Dashboard Posts
- Use category base slug in posts’ permalink
- Customizing HTML Editor Quicktags button to open a dialog for choosing insert options
- How to manually link posts to each other in WordPress
- Post/Page Publish/Update button not clickable once I make an edit
- Sends out email to admin
- Get title of post without using the_title();
- $post->ID not working
- Setting pagination for images attached to a post
- Find most recent authors
- How to add a custom button to the tinyMCE toolbar?
- Is it possible to show a different WP menu when using password protected pages?
- How to add one time a new page?
- POST from jQuery to PHP
- get_post_custom stripping styling issue
- Enable commenting on front-end preview page for pending posts
- why does HTML Tag not working in Post and Page
- Redirect before post page
- Fetch posts from current week (Sunday to Saturday)
- Using radio button meta data from a custom meta box
- How to place HTML below the title of the (custom) post overview
- A way to detect which page a post is on
- Get posts by multiple ID’s (query)
- Checking if a post with certain meta value exists
- AJAX filter posts by year
- Add a class to post title if a link ends with a certain extension
- Animated gif for a thumbs
- Admin Notices don’t display on the admin screen for certain post
- I am unable to publish/update post
- is there a way to show the the post title after the image?
- Add the description field on the attached media
- Is there a way to notify specific users when new posts are published to specific pages?
- filter RSS feed in URL
- What hook do you use to update a post?
- get_adjacent_post by language
- Force authors to Preview a post before publishing
- sql select for post_title and a term name
- While loop articles – if statement order
- Count number of posts of current month
- Change all author links in Blog roll
- How to I retrieve the ID from the Posts page?
- Random posts from a pool of posts
- Crazy Question – Updating Post ID
- Post Image not displaying in category view
- Prevent Title Edit In post.php
- relating business and products with custom taxonomy?
- Send POST request to WordPress to make a new post
- Edit multiple custom post types while saving a new or edited post
- Moving the blog page
- Is it possible to lock all new and existing WordPress posts to one specific author?
- How to style archive post titles… but only those posts who have comments?
- add external project to web site wordpress on production
- How to check if there are posts with the same tag
- Showing recent post of category in page
- Can i have more than one form for front end posting in one template [closed]
- How to exclude the word “class” from being matched in search?
- Count user posts and store the number for later use
- How do I allow certain users to make a certain type of post?
- How to determine if a post was last edited in the Visual Editor
- How to make blog posts have their own urls?
- How to add content above footer in posts from specific category
- How to limit post (Exception pages) for current user in each role in front end?
- Show posts from two specific category in WP_Query
- How to pull latest posts from a specific category
- Countrywise Post View
- Scrollbar disappear in post window
- call to jquery ajax failing with 500 error when passing extra data field
- How to create a button to filter posts (list) by meta value
- How to make certain posts not appear on the main page, but instead only a newly created category(in the menu section)
- Not able to post data through wp-admin
- Double loop output
- AJAX load more posts not using correct category and repeating the same few posts
- Multiple Pages – Seperate blogs
- post->ID displays the same ID number for every post
- Post by Email – Shortcode for Language? [closed]
- Compare date of user’s last posts
- Only get post_id [duplicate]
- Disable `create_post` for built-in post type
- how to create other sizes of original image in one go wordpress uploads
- Difficulty in creating and handling a complex post type
- Admin is showing all posts on page 1
- Display only current page -> posts tags in page
- Can’t seem to replicate permalink structure for localhost development site
- Newly created category does not show category
- 3rd Party Login in wordpress
- How to mix pages and sub-categories in a url
- Authors can edit all posts, except when an owner is specified?
- Formatting error while publishing theblog from Microsoft Word
- Overwrite URL on blog posts
- post content includes and seo vs. duplicate content
- Create post from form with image
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- Display draft posts on single pages [duplicate]
- query_posts different amount of posts per page [duplicate]
- Display content from specific category
- WordPress Custom Post type csv exporter