Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    use $obj->labels->name instead. It’ll tap into the label fields.

    Thread Starter tactics

    (@tactics)

    Tried:

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

    Didn’t work.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    are you sure you’re working with a post type here? I saw above that you mentioned category slug, which would be taxonomy stuff rather than post type.

    Use the print_r() function on your $obj to see what you’re getting out of things.

    Thread Starter tactics

    (@tactics)

    You’re right, my colleague changed the slug. Thanks much!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display post type's plural label?’ is closed to new replies.