Opened 3 years ago

Closed 3 years ago

#5495 closed defect (bug) (invalid)

Array to string conversion notice when querying multiple post_types

Reported by: luckyape's profile luckyape Owned by:
Milestone: Priority: normal
Component: General Keywords:


When multiple post_types are queried from pre_get_posts hook the resulting list page renders as expected however wp-admin/edit.php gives up a:

Notice: Array to string conversion on line 319


Change History (2)

#1 @joyously
3 years ago

I think you're in the wrong place. This Trac is for problems with the site itself.

It sounds like you are describing a problem in your code that shows in the admin since each Post type list page is for a single type, and you are making it multiple types.

#2 @anonymized_17597547
3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Hi @luckyape,

This trac instance is for reporting bugs on the website itself, and not inside WordPress itself.

If you're still experiencing this under the latest version of WordPress, and without plugins enabled, you can report this to the WordPress Core trac at:

Note: See TracTickets for help on using tickets.