sage
sage copied to clipboard
Archive page doesnt shows Custom Post Type name as title in h1
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
a link to your site / references would help us to help you.
tnx ben :)