WP_Query Filtred by author name ( Return null )
That’s not how WP_Query works, it isn’t what the documentation says either. WP_Query is not a function. foreach needs an array, or something that can be iterated on, but you’ve given it a WP_Query object. Instead, look at the documentation or tutorials, all of them follow this basic pattern for a standard post loop: $args … Read more