Advertisement
Guest User

GLOBALS['wp_query']

a guest
May 3rd, 2011
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. WP_Query Object
  2. (
  3. [query_vars] => Array
  4. (
  5. [s] => hello
  6. [error] =>
  7. [m] => 0
  8. [p] => 0
  9. [post_parent] =>
  10. [subpost] =>
  11. [subpost_id] =>
  12. [attachment] =>
  13. [attachment_id] => 0
  14. [name] =>
  15. [static] =>
  16. [pagename] =>
  17. [page_id] => 0
  18. [second] =>
  19. [minute] =>
  20. [hour] =>
  21. [day] => 0
  22. [monthnum] => 0
  23. [year] => 0
  24. [w] => 0
  25. [category_name] =>
  26. [tag] =>
  27. [cat] =>
  28. [tag_id] =>
  29. [author_name] =>
  30. [feed] =>
  31. [tb] =>
  32. [paged] => 0
  33. [comments_popup] =>
  34. [meta_key] =>
  35. [meta_value] =>
  36. [preview] =>
  37. [sentence] =>
  38. [fields] =>
  39. [category__in] => Array
  40. (
  41. )
  42.  
  43. [category__not_in] => Array
  44. (
  45. )
  46.  
  47. [category__and] => Array
  48. (
  49. )
  50.  
  51. [post__in] => Array
  52. (
  53. )
  54.  
  55. [post__not_in] => Array
  56. (
  57. )
  58.  
  59. [tag__in] => Array
  60. (
  61. )
  62.  
  63. [tag__not_in] => Array
  64. (
  65. )
  66.  
  67. [tag__and] => Array
  68. (
  69. )
  70.  
  71. [tag_slug__in] => Array
  72. (
  73. )
  74.  
  75. [tag_slug__and] => Array
  76. (
  77. )
  78.  
  79. [meta_query] => Array
  80. (
  81. )
  82.  
  83. [ignore_sticky_posts] =>
  84. [suppress_filters] =>
  85. [cache_results] => 1
  86. [update_post_term_cache] => 1
  87. [update_post_meta_cache] => 1
  88. [post_type] => any
  89. [posts_per_page] => 10
  90. [nopaging] =>
  91. [comments_per_page] => 50
  92. [no_found_rows] =>
  93. [search_terms] => Array
  94. (
  95. [0] => hello
  96. )
  97.  
  98. [order] => DESC
  99. [orderby] => wp_posts.post_date DESC
  100. )
  101.  
  102. [tax_query] => WP_Tax_Query Object
  103. (
  104. [queries] => Array
  105. (
  106. )
  107.  
  108. [relation] => AND
  109. )
  110.  
  111. [post_count] => 1
  112. [current_post] => 0
  113. [in_the_loop] => 1
  114. [comment_count] => 0
  115. [current_comment] => -1
  116. [found_posts] => 1
  117. [max_num_pages] => 1
  118. [max_num_comment_pages] => 0
  119. [is_single] =>
  120. [is_preview] =>
  121. [is_page] =>
  122. [is_archive] =>
  123. [is_date] =>
  124. [is_year] =>
  125. [is_month] =>
  126. [is_day] =>
  127. [is_time] =>
  128. [is_author] =>
  129. [is_category] =>
  130. [is_tag] =>
  131. [is_tax] =>
  132. [is_search] => 1
  133. [is_feed] =>
  134. [is_comment_feed] =>
  135. [is_trackback] =>
  136. [is_home] =>
  137. [is_404] =>
  138. [is_comments_popup] =>
  139. [is_paged] =>
  140. [is_admin] =>
  141. [is_attachment] =>
  142. [is_singular] =>
  143. [is_robots] =>
  144. [is_posts_page] =>
  145. [is_post_type_archive] =>
  146. [query_vars_hash] => 9239c51a87a28d35c747dafa8c8a8d82
  147. [query_vars_changed] =>
  148. [query] => Array
  149. (
  150. [s] => hello
  151. )
  152.  
  153. [request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND (((wp_posts.post_title LIKE '%hello%') OR (wp_posts.post_content LIKE '%hello%'))) AND wp_posts.post_type IN ('post', 'page', 'attachment', 'project', 'entity', 'topic') AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 1 AND wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC LIMIT 0, 10
  154. [posts] => Array
  155. (
  156. [0] => stdClass Object
  157. (
  158. [ID] => 1
  159. [post_author] => 1
  160. [post_date] => 2010-09-05 21:15:09
  161. [post_date_gmt] => 2010-09-05 21:15:09
  162. [post_content] => Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
  163. [post_title] => Hello world!
  164. [post_excerpt] =>
  165. [post_status] => publish
  166. [comment_status] => open
  167. [ping_status] => open
  168. [post_password] =>
  169. [post_name] => hello-world
  170. [to_ping] =>
  171. [pinged] =>
  172. [post_modified] => 2010-09-05 21:15:09
  173. [post_modified_gmt] => 2010-09-05 21:15:09
  174. [post_content_filtered] =>
  175. [post_parent] => 0
  176. [guid] => http://www.url.com/wordpress/?p=1
  177. [menu_order] => 0
  178. [post_type] => post
  179. [post_mime_type] =>
  180. [comment_count] => 1
  181. [filter] => raw
  182. )
  183.  
  184. )
  185.  
  186. [post] => stdClass Object
  187. (
  188. [ID] => 1
  189. [post_author] => 1
  190. [post_date] => 2010-09-05 21:15:09
  191. [post_date_gmt] => 2010-09-05 21:15:09
  192. [post_content] => Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
  193. [post_title] => Hello world!
  194. [post_excerpt] =>
  195. [post_status] => publish
  196. [comment_status] => open
  197. [ping_status] => open
  198. [post_password] =>
  199. [post_name] => hello-world
  200. [to_ping] =>
  201. [pinged] =>
  202. [post_modified] => 2010-09-05 21:15:09
  203. [post_modified_gmt] => 2010-09-05 21:15:09
  204. [post_content_filtered] =>
  205. [post_parent] => 0
  206. [guid] => http://www.url.com/wordpress/?p=1
  207. [menu_order] => 0
  208. [post_type] => post
  209. [post_mime_type] =>
  210. [comment_count] => 1
  211. [filter] => raw
  212. )
  213.  
  214. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement