Yes, using WordPress shortcodes you can create a quick annotation shortcode.
add_shortcode( 'annotation', 'wpse47489_private_annotation' );
function wpse47489_private_annotation( $args, $content="" ) {
if ( !current_user_can( 'administrator' ) ) return '';
return "<div class="hidden-annotation">$content</div>";
}
This will return an empty string for anyone but administrators. You can always return an empty string ''
though, these annotations will be visible when editing the post.
Use in the content like so:
Lorem ipsum!
[annotation]find better introductory paragraph[/annotation]
…dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Related Posts:
- How to Change Order of Posts in Admin?
- simply loop through posts
- How to Display Network Post Count?
- WordPress Queue like Tumblr?
- How to disable content pagination?
- How to add/assign or change featured image in post programmatically?
- WP-CLI Bulk delete posts from specific category
- Update all posts automatically when using post_meta
- Moving WordPress to new server: no posts found
- Exclude ALL posts from sub categories
- Post ids are incrementing by an unknown number?
- Can’t show comments count per post outside loop
- Get current users post URL?
- Redirect based on user post count
- Should our pages be posts?
- Allow role to delete posts but block him the wp-admin
- How to Add ‘Post Categories’ to the Dashboard Sidebar
- Link post permalinks to subdirectory /post
- How do I add a custom body class to the admin area of a page?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Get permalink of post that an attachment is linked to
- How to make the post summary taller?
- Why content_arr[‘extended’] removes paragraph tags?
- SQL query to retrieve all the records that have not indicated category
- Changing Permalinks for Default Post type to reflect navigation
- open selected wordpress post with javascript
- do_shortcode within post query
- How to change the setting so there is no post on home page
- How should I add links to other pages/posts from my post?
- problems with loading posts in a table-row
- How to have posts have a parent in permalink like site.com/blog/postname
- Unable to restore from backup – how to obtain old blog posts?
- Show only one page link in content pagination
- Second comments section for one post/page
- 404 error on default post type and default taxonomy fronted page
- How i can limit period of post publication?
- Exclude current custom post on single post
- Why Query is returning empty array?
- meta_value timestamp older than now
- Total number of posts in query (category/tag/author/search results/main page…)
- search blog posts by author first name and or last name
- Make loop inside slider divisible [closed]
- Very complex post query
- How to add convenient buttons for new custom post statuses
- Change the number of excerpts displayed in search results layout
- Echo Text If User Is Logged in But NOT the Author of post
- Database hacked – random posts are modified
- Getting Whitescreen when publishing a post [closed]
- Display value of custom field at the beginning of a post
- How to display post list in a table layout (multiple queries in single loop)
- add div after image in post [closed]
- How do I link a Post Type to a Template in Masterplan?
- Post is in descendant category not working in home.php
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Get content from WordPress posts in Boostrap modal window – Javascript side?
- How can my plugin display a populated new post window
- Where is the “Posts”/”Blog” template?
- How to get posts ordered by using their categories?
- Where to insert the other site image url for our wordpress post
- How to get value in radio input in post meta box?
- Automate post update for all posts?
- ACF date picker to trigger category change
- How to insert custom text after H1 to all my blog posts?
- wordpress admin missing Posts button
- Set post title font size automatically according to number of words in post title
- SQL query: select duplicate posts – but using duplicate meta [duplicate]
- Sync All Post Type Tag
- post and page and custom post type
- How can I use query_posts to loop through posts and construct my own content?
- How to make an image appear as a thumbnail in the blog post?
- How can i take all ids from untrash_post action?
- Permalink base only for posts
- If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
- Not display post meta if empty
- Query posts from newest category
- issue in wordpress auto delete post and redirect to another 1
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- Adding div to WordPress page content
- Modify WordPress loop after it has been run
- How to get next_posts_link working with a customised page
- Loop doesn’t display posts. It displays a link to the home page instead
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- Super post cleaner, could this be category specific?
- How to organise post by category and date
- Show post if in category
- How to display custom content in post with category XXX
- Get current post’s child page?
- How to include Related Posts in WP RSS feed
- Display only posts with comments
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- retrieve post slug by post_tags taxonomy
- Show all posts in category
- Creating a new Sortable Column in WordPress Admin
- Hide the contents for specific post
- how to show all type of author posts in author page (SOLVED)
- Display post structure in function
- sub posts to parent post
- How to change Post title background size?
- Display post by select it from a dropdown menu
- I am using the query block and what I want and see on the editor page is not the same with the actual results