Get Category Name By ID (WordPress)
-
Post author
Posted By: Jennifer Zelazny
-
Post date
June 29, 2009
-
Categorized
Categorized: HOWTOs SDAC Blog WordPress
-
17 Comments on Get Category Name By ID (WordPress)
- Post author Posted By: Jennifer Zelazny
- Post date June 29, 2009
- Categorized Categorized: HOWTOs SDAC Blog WordPress
- 17 Comments on Get Category Name By ID (WordPress)
I have been working on a new WordPress theme (to be released this week) and in one of the admin screens – I needed to get the category name by using the category ID. To do this (in or outside of the loop):
<?php get_cat_name( $cat_id ) ?>
Super simple – super helpful.
Reference: http://codex.wordpress.org/Function_Reference/get_cat_name
- Tags Tagged: Codex, get_cat_name, SDAC theme
Recent Posts
Archives
Categories
Tags
bbPress
Bug Fixes
Commerical Theme
CSS
exclude
functions.php
HOWTOs
Javascript
Logic
Lucidity
Lucidity Catalog
SDAC-Inc
SDAC-Recommends
SDAC Plugin
SDAC Post Slideshows
SDAC Related Content
SDAC theme
SDAC Translate
security
Security-Updates
Security Fixes
Security Update
SVN
Update
Updates
WordPress
WordPress 2.5
WordPress 2.8
WordPress 4.2.x
WordPress 4.5
WordPress 4.7
WordPress 4.8
WordPress 4.9
WordPress 5.2
WordPress 5.5
WordPress 5.9
WordPress function
WordPress functions
WordPress Plugins
WordPress Releases
WordPress security
WordPress Security Release
WordPress Update
WordPress Updates
WP Engine
Recent Posts
Archives
Categories
- SDAC (33)
- SDAC News (16)
- SDAC Products (17)
- SDAC Blog (303)
- bbPress (5)
- Bootstrap (5)
- Clients (5)
- CSS (9)
- High Performance Optimization (5)
- HOWTOs (63)
- Javascript (3)
- Network Solutions (1)
- News (6)
- vbulletin (1)
- Web Hosting (5)
- WordPress (264)
- WordPress Commercial Themes (6)
- WordPress Logic (23)
- WordPress Plugins (39)
- WordPress Themes (8)
- WordPress Troubleshooting (13)
- WordPress Updates (154)
- XOOPS (3)
- XOOPS Modules (1)
- Shopify (1)
- Uncategorized (2)
Tags
bbPress
Bug Fixes
Commerical Theme
CSS
exclude
functions.php
HOWTOs
Javascript
Logic
Lucidity
Lucidity Catalog
SDAC-Inc
SDAC-Recommends
SDAC Plugin
SDAC Post Slideshows
SDAC Related Content
SDAC theme
SDAC Translate
security
Security-Updates
Security Fixes
Security Update
SVN
Update
Updates
WordPress
WordPress 2.5
WordPress 2.8
WordPress 4.2.x
WordPress 4.5
WordPress 4.7
WordPress 4.8
WordPress 4.9
WordPress 5.2
WordPress 5.5
WordPress 5.9
WordPress function
WordPress functions
WordPress Plugins
WordPress Releases
WordPress security
WordPress Security Release
WordPress Update
WordPress Updates
WP Engine