Mon Aug 29 2022 15:22:38 GMT+0000 (Coordinated Universal Time)
Saved by @hamzahanif192
$category_name = (!empty(get_the_category($post)) ? get_the_category($post)[0]->name : '');
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments