Thu Jul 06 2023 11:50:07 GMT+0000 (Coordinated Universal Time)
Saved by @gshailesh27
//Declare on top global $post; $category = get_queried_object(); //Add into post list query // $category->name // $category->slug // $category->term_id 'cat' => $category->term_id //OR 'your texonomy name' => $category->term_id,
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments