Title: post_type in array
Last modified: August 20, 2016

---

# post_type in array

 *  [leggo-my-eggo](https://wordpress.org/support/users/leggo-my-eggo/)
 * (@leggo-my-eggo)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/post_type-in-array/)
 * WP Document Revision’s post_type (‘document’) seems to be showing up in wp_query
   as an array. This is causing some trouble with a couple of other plugins which
   expect it to be a string. Is it your plugin which sets it as an array? Is there
   a good reason for it to be an array? I see that it’s in the WordPress Codex spec
   that arrays are acceptable, and I’ve contacted the other plugin devs to see if
   they can change their code. But I’m wondering if for compatibility’s sake it 
   would be simple to just make it a string.
 * [http://wordpress.org/extend/plugins/wp-document-revisions/](http://wordpress.org/extend/plugins/wp-document-revisions/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [leggo-my-eggo](https://wordpress.org/support/users/leggo-my-eggo/)
 * (@leggo-my-eggo)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/post_type-in-array/#post-3466486)
 * Sorry, I just realized this was a query I was generating through the posts-to-
   posts plugin. Resolved.

Viewing 1 replies (of 1 total)

The topic ‘post_type in array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-document-revisions_6c6c6c.svg)
 * [WP Document Revisions](https://wordpress.org/plugins/wp-document-revisions/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-document-revisions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-document-revisions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-document-revisions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-document-revisions/reviews/)

## Tags

 * [post_type](https://wordpress.org/support/topic-tag/post_type/)

 * 1 reply
 * 1 participant
 * Last reply from: [leggo-my-eggo](https://wordpress.org/support/users/leggo-my-eggo/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/post_type-in-array/#post-3466486)
 * Status: not resolved