I'm trying to get the current ID of the category page I'm viewing.
I had checked the_category_ID
But this echo'd my result when I used
<?php $catID = the_category_ID(); ?>
Is there a way to get it to return the value to the variable so its hidden?