I’ve fixed it! The problem was that those posts didn’t have a category so after updating it everting worked fine.