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

2
  • 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
    Commented Oct 1, 2015 at 12:32
  • No I am no using wp query I use simple wordpress while loop to shoe posts Commented Oct 1, 2015 at 12:42

1 Answer 1

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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