sage icon indicating copy to clipboard operation
sage copied to clipboard

Archive page doesnt shows Custom Post Type name as title in h1

Open taniot opened this issue 14 years ago • 2 comments

Hi, i'm using Types, a plugin useful for the creation of Custom Post Types.

However, I need to show the archive page for this custom post type, and obviously it works when i call

mydomain.com/CUSTOM_POST_TYPE_NAME

but... there's not the TITLE :(

the titles magically appear when this kind of pages are showing taxonomies, date archives, tag archives

At the moment I fixed it using this portion of code

if (!single_cat_title()) :

echo get_queried_object()->labels->name;

endif;

Thanks

taniot avatar May 16 '12 10:05 taniot

a link to your site / references would help us to help you.

expertpixels avatar May 17 '12 02:05 expertpixels

tnx ben :)

taniot avatar May 17 '12 06:05 taniot