WordPress.org

Making WordPress.org

#5495 closed defect (invalid)

Array to string conversion notice when querying multiple post_types

Reported by: luckyape Owned by:
Milestone: Priority: normal
Component: General Keywords:
Cc:

Description

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

Thanks!

Change History (2)

#1 @joyously
12 months ago

I think you're in the wrong place. This Trac is for problems with the wordpress.org 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
12 months ago

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

Hi @luckyape,

This trac instance is for reporting bugs on the WordPress.org 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: https://core.trac.wordpress.org/

Note: See TracTickets for help on using tickets.