Support » Fixing WordPress » Multiple CPT – Display CPT Objects

  • Hi All,

    I have multiple custom post types. Each post type has a description. I would like to show the description object on the 2016 theme page.php.

    Here is my code:

    <?php
    global $post_type;
    $obj = get_post_type_object($post_type);
    echo  $obj->description;
    ?>

    What am I doing wrong? Localhost not live.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Multiple CPT – Display CPT Objects’ is closed to new replies.