1

Fatal error: Cannot use object of type WP_Post as array in C:\xampp\htdocs\wordpress-4.3.1\wp-includes\query.php on line 3716

I don't know what is this I am searching from internet but not find the solution

  • what are you trying to do? If you are using WP_QUERY you'll get an object which you have to treat like an object and not like an array (e.g. not $query['val'] but $query->val) – Mike Oct 1 '15 at 12:32
  • No I am no using wp query I use simple wordpress while loop to shoe posts – Hafiz Usman aftab Oct 1 '15 at 12:42
2

This error is telling you that a post object has been passed into a function or method where an array was expected. The file you cited is the location there whe error was reported. Use a stack trace to determine where the error originated from to solve your problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.