• Resolved tactics

    (@tactics)


    Hi folks, quick question: How can I display my custom post type’s plural label on a page? I tried this:

    <h1><?php $obj = get_post_type_object( ‘wedding-logos’ );
    echo $obj->name; ?></h1>

    But that displays the category slug (wedding-logos) rather than the friendly name (Wedding Logos).

    https://ww.wp.xz.cn/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Display post type's plural label?’ is closed to new replies.