get_the_category_by_ID

Sponsored Link

カテゴリーIDに基づいて、カテゴリー名を取得します。

Sponsored Link

Retrieve category name based on category ID.

get_the_category_by_IDのファンクションタグ使用方法

<?php get_the_category_by_ID( $cat_ID ); ?>

get_the_category_by_IDのパラメーター

$cat_ID

(int) (required)カテゴリーID。
デフォルト:なし

(int) (required) Category ID.
Default: None

戻り値

(string)カテゴリー名

(string)
Category name.

変更ログ

Since: 0.71

ソースファイル

get_the_category_by_ID()は、wp-includes/category-template.php内に位置しています。

get_the_category_by_ID() is located in wp-includes/category-template.php

関連ファンクションタグ

Categories: the_category(), the_category_rss(), single_cat_title(), category_description(), wp_dropdown_categories(), wp_list_categories(), get_the_category(), get_the_category_by_ID(), get_category_by_slug(), get_the_category_list(), get_category_parents(), get_category_link(), is_category(), in_category()

Sponsored Link