/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php //AKTUELLE Post-KATEGORIE-ID ermitteln foreach((get_the_category()) as $category) { $postcat= $category->cat_ID; $catname =$category->cat_name; //echo $postcat; } ?>