WordPress tip: add a notice to the post editor screen

Often corporate or news WordPress sites are managed by people who don't really know WordPress. They can run into problems when publishing A short notice on the post editor screen is very helpful. The sample code below is what our editors use; it saves us from repeating the same instructions over and over. instructions over and over.

Copy the snippet below into functions.php, tweak the message you need, and save.

function wptutsplus_text_after_title( $post_type ) { ? >
    <div>
        <h3>Using this screen</h3>
        <div>
            <p>Please pay attention to the use of h2 and strong tags, do not stack keywords, and add featured images if you need to display images on the section page.</p>
        </div><!-- .inside -->
    </div><!-- .postbox -->
&lt;?php }
add_action( &#039;edit_form_after_title&#039;, &#039;wptutsplus_text_after_title&#039; );

Leave a Reply

Your email address will not be published. Required fields are marked *