Home Forums Front-end Issues Display post type's plural label?


Display post type's plural label?

  • 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 rather than the friendly name.

  • Oops, wrong forum. Too early in the morning. Couldn’t figure out how to delete this post. Never mind!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.