You can use is_post_type_archive()
, which is one of the many conditional tags in WordPress:
if ( is_post_type_archive( 'your_post_type' ) ) {
// show the title bar
}
// else, just do nothing
You can use is_post_type_archive()
, which is one of the many conditional tags in WordPress:
if ( is_post_type_archive( 'your_post_type' ) ) {
// show the title bar
}
// else, just do nothing