[Resolved] Using the custom post type label and description
I think this should be easy to solve, I just can’t find any relevant examples in the Codex or by searching around on Google. I have set up some custom post types on my site, and everything is working nicely (nice feature!). I want to display the custom post type label within the loop, but I can’t find how to do so.
I am currently using
<?php echo get_post_type($post) ; ?>which prints the post type name (eg “reviews”). But I want to publish the label, or singular label, (eg “Reviews” or “Review”). Likewise, I want to publish the post type description. Can anyone suggest the code I would use?
- The topic ‘[Resolved] Using the custom post type label and description’ is closed to new replies.