Title: Using the Description
Last modified: June 28, 2022

---

# Using the Description

 *  Resolved [bkjproductions](https://wordpress.org/support/users/bkjproductions/)
 * (@bkjproductions)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/using-the-description/)
 * As noted at
    [https://docs.pluginize.com/article/displaying-post-type-descriptions/](https://docs.pluginize.com/article/displaying-post-type-descriptions/)
   you can display those handy descriptions that you create, to enhance the workflow
   in the WP backend. Below is how we have implemented it, to add some additional
   notes for some other standard post types as well. This code would live in your
   theme’s functions.php or a plugin’s functions.php
 * `
 * function bkj_mf_general_admin_notice(){
    global $pagenow; // see [https://developer.wordpress.org/reference/functions/get_current_screen/](https://developer.wordpress.org/reference/functions/get_current_screen/)
   $current_screen = get_current_screen(); $postinfo = get_post_type_object($current_screen-
   >post_type); $message = ”;
 *  switch ($current_screen->post_type) {
    case ‘post’ : $message = “Posts are content
   such as news, press releases, etc.”; break; case ‘elementor_library’ : $message
   = ‘Elementor Templates are special layouts you can use in three different ways:
   <br> A: **Insert** as a Widget when editing in Elementor<br> B: Insert as a **
   shortcode** using [elementor-template id=”xxxxx”]<br> C: Use as a starting point
   when creating a new Elementor page.’; break; case ‘page’ : $message = ‘Pages 
   are for long-term, “evergreen” content that is not likely to change.’; break;
   default: if ($postinfo->description) { $message = $postinfo->description; } }
 *  if ( ( $pagenow == ‘edit.php’) && $message) {
    echo ‘<div class=”notice notice-
   info”><p>’; //print_r($postinfo); echo $message; echo ‘</p> </div>’; } } add_action(‘
   admin_notices’, ‘bkj_mf_general_admin_notice’);

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [3 years, 11 months ago](https://wordpress.org/support/topic/using-the-description/#post-15779378)
 * Hey [@bkjproductions](https://wordpress.org/support/users/bkjproductions/) Is
   this meant as documentation contribution as a way to potentially use the descriptions?
   Or are you trying to troubleshoot something with this?

Viewing 1 replies (of 1 total)

The topic ‘Using the Description’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/using-the-description/#post-15779378)
 * Status: resolved