Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

For a blog project, I need to be able to attach content to each blog post which isn't visible to the casual reader but to all editors.

Think of it as a collection of reference materials, comments and ideas which I'd like to keep. If possible, then I'd like to see this section along with the normal blog editor (so I can edit both at the same time).

Note that I'd like to create a multilingual blog, but it would be alright if this additional information would show up only in the main language (English) instead of being translated. But it should show up in all language versions.

share|improve this question

1 Answer 1

I like this idea from wprecipes.com. It is a very lightweight solution.

add_shortcode( 'note', 'sc_note' );

function sc_note( $atts, $content = null ) {
     if ( current_user_can( 'publish_posts' ) )
        return '<div class="note">'.$content.'</div>';
    return '';
}

It allows you to use the [note]...[/note] shortcode to enter private comments.

share|improve this answer
    
+1 nice idea. I'd prefer a extra, stand alone field, though. –  Aaron Digulla Feb 22 '12 at 8:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.