How to Show or Hidden Categories on page in WordPress?

Goto your respective page template file, default is page.php and the following code

<?php
    if (is_page('Food')) {
      $catID=11;
    } elseif (is_page('Cooking')) {
      $catID=12;
    }
?>

To get the category ID, navigate to dashboard>posts>categories>

Click on the respective category, and see the url,
it must be something like this wp-admin/categories.php?action=edit&cat_ID=11

take the value of cat_ID in this case the id will be

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)