All,
Would appreciate any help! Just took over a site and am having an issues with the category pages. They're currently showing all blog posts rather than just those belonging to their category. I'm pretty sure the issue can be found in the category.php file. It looks like the previous developer set up the FAQ page by submitting them as blog posts, see below:
<?php foreach((get_the_category()) as $category) {
$cat_id = $category->cat_ID;
}
if ($cat_id == 38 or $cat_id == 49 or $cat_id == 47 or $cat_id == 48){
get_template_part( 'content','faq');
}
else{
get_template_part( 'content','blog');
}
?>
Any suggestions would be welcome, thanks!