get_the_category( int $id = false )

Retrieve post categories.


25 related functions found for: get_the_category

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordscategori, categories, category, category-template-php, get, taxonomi, taxonomy, wp-includes
wp-parser-packageTemplate, WordPress
wp-parser-source-filewp-includes/category-template.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • categori
  • categories
  • category
  • category-template-php
  • get
  • taxonomi
  • taxonomy
  • Template
  • wp-includes
  • wp-includes/category-template.php
  • template

Top ↑

Description Description

This tag may be used outside The Loop by passing a post id as the parameter.

Note: This function only returns results from the default "category" taxonomy. For custom taxonomies use get_the_terms().


Top ↑

Parameters Parameters

$id

(int) (Optional) default to current post ID. The post ID.

Default value: false


Top ↑

Return Return

(array) Array of WP_Term objects, one for each category assigned to the post.


Top ↑

Source Source

File: wp-includes/category-template.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
0.71 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.