I am new to this WordPress Support Community. Its been hours tweaking this code. Well, my coding background is not quite good so I really need your help guys.
$category = get_the_category();
$cat_slug = $category->category_nicename;
'name' => $cat_slug,
if (have_posts()) : while (have_posts()) : the_post();
BTW, the codes call a post then it will be displayed in the category.
Well, the code works but I want to put a code if there is nothing to call it will return to echo 'This will be updated.'
Thanks so much guys!