Fixing the logic of the filtering at the beginning of the feed.php