Making WordPress.org

Opened 4 years ago

Closed 4 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:
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
4 years 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
4 years 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.