“Warning: count()” error on php 7.2
Yes, I already knew the cause of what you’re experiencing: The $page and $pages global variable have not been set up and a call to get_the_content or get_the_excerpt would return that error: count(pages) That said, pages global variable is set to null, calling count(pages) triggers that error because a null value cannot be counted. To … Read more