labels->name; // 該当記事が0件の場合に投稿タイプ名が取得出来ないのでタクソノミー経由で取得する } else if ( is_tax( ) ) { $taxonomy = get_queried_object()->taxonomy; $postTypeSlug = get_taxonomy( $taxonomy )->object_type[0]; $pageTitle = get_post_type_object($postTypeSlug)->labels->name; } } } else if (is_page() || is_attachment()) { $pageTitle = get_the_title(); } else if (is_search()) { $pageTitle = sprintf(__('Search Results for : %s', 'biz-vektor'),get_search_query()); } else if (is_404()){ $pageTitle = __('Not found', 'biz-vektor'); } /*-------------------------------------------*/ /* 出力 /*-------------------------------------------*/ $pageTitle = apply_filters( 'biz_vektor_pageTitCustom', $pageTitle ); if ( is_home() || is_page() || is_attachment() || is_search() || is_404() ){ ?>

[ ', ' ]' ); endif; ?>