Return to Snippet

Revision: 15226
at June 27, 2009 15:01 by zartgesotten


Initial Code
<?php 
	//AKTUELLE Post-KATEGORIE-ID ermitteln
	foreach((get_the_category()) as $category) 
        { 
	  $postcat= $category->cat_ID; 
	  $catname =$category->cat_name;
	  //echo $postcat;
	} 
?>

Initial URL


Initial Description


Initial Title
Wordpress - Get current category name and / or ID

Initial Tags
wordpress, category, theme

Initial Language
PHP