Advertisement
Guest User

WP_Query Object

a guest
Sep 27th, 2011
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.54 KB | None | 0 0
  1. WP_Query Object
  2. (
  3.     [query_vars] => Array
  4.         (
  5.             [attachment-tags] => black
  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.             [s] =>
  38.             [sentence] =>
  39.             [fields] =>
  40.             [category__in] => Array
  41.                 (
  42.                 )
  43.  
  44.             [category__not_in] => Array
  45.                 (
  46.                 )
  47.  
  48.             [category__and] => Array
  49.                 (
  50.                 )
  51.  
  52.             [post__in] => Array
  53.                 (
  54.                 )
  55.  
  56.             [post__not_in] => Array
  57.                 (
  58.                 )
  59.  
  60.             [tag__in] => Array
  61.                 (
  62.                 )
  63.  
  64.             [tag__not_in] => Array
  65.                 (
  66.                 )
  67.  
  68.             [tag__and] => Array
  69.                 (
  70.                 )
  71.  
  72.             [tag_slug__in] => Array
  73.                 (
  74.                 )
  75.  
  76.             [tag_slug__and] => Array
  77.                 (
  78.                 )
  79.  
  80.             [ignore_sticky_posts] =>
  81.             [suppress_filters] =>
  82.             [cache_results] => 1
  83.             [update_post_term_cache] => 1
  84.             [update_post_meta_cache] => 1
  85.             [post_type] => Array
  86.                 (
  87.                     [0] => attachment
  88.                 )
  89.  
  90.             [posts_per_page] => 1
  91.             [nopaging] =>
  92.             [comments_per_page] => 50
  93.             [no_found_rows] =>
  94.             [taxonomy] => attachment-tags
  95.             [term] => black
  96.             [order] => DESC
  97.             [post_status] => Array
  98.                 (
  99.                     [0] =>
  100.                 )
  101.  
  102.         )
  103.  
  104.     [tax_query] => WP_Tax_Query Object
  105.         (
  106.             [queries] => Array
  107.                 (
  108.                     [0] => Array
  109.                         (
  110.                             [taxonomy] => attachment-tags
  111.                             [terms] => Array
  112.                                 (
  113.                                     [0] => black
  114.                                 )
  115.  
  116.                             [include_children] => 1
  117.                             [field] => slug
  118.                             [operator] => IN
  119.                         )
  120.  
  121.                     [1] => Array
  122.                         (
  123.                             [taxonomy] => attachment-tags
  124.                             [terms] => Array
  125.                                 (
  126.                                     [0] => black
  127.                                 )
  128.  
  129.                             [include_children] => 1
  130.                             [field] => slug
  131.                             [operator] => IN
  132.                         )
  133.  
  134.                 )
  135.  
  136.             [relation] => AND
  137.         )
  138.  
  139.     [meta_query] => WP_Meta_Query Object
  140.         (
  141.             [queries] => Array
  142.                 (
  143.                 )
  144.  
  145.             [relation] =>
  146.         )
  147.  
  148.     [post_count] => 1
  149.     [current_post] => -1
  150.     [in_the_loop] =>
  151.     [comment_count] => 0
  152.     [current_comment] => -1
  153.     [found_posts] => 2
  154.     [max_num_pages] => 2
  155.     [max_num_comment_pages] => 0
  156.     [is_single] =>
  157.     [is_preview] =>
  158.     [is_page] =>
  159.     [is_archive] => 1
  160.     [is_date] =>
  161.     [is_year] =>
  162.     [is_month] =>
  163.     [is_day] =>
  164.     [is_time] =>
  165.     [is_author] =>
  166.     [is_category] =>
  167.     [is_tag] =>
  168.     [is_tax] => 1
  169.     [is_search] =>
  170.     [is_feed] =>
  171.     [is_comment_feed] =>
  172.     [is_trackback] =>
  173.     [is_home] =>
  174.     [is_404] =>
  175.     [is_comments_popup] =>
  176.     [is_paged] =>
  177.     [is_admin] =>
  178.     [is_attachment] =>
  179.     [is_singular] =>
  180.     [is_robots] =>
  181.     [is_posts_page] =>
  182.     [is_post_type_archive] =>
  183.     [query_vars_hash] => e5c3845f69a57c88acd41820c82c544a
  184.     [query_vars_changed] =>
  185.     [thumbnails_cached] =>
  186.     [query] => Array
  187.         (
  188.             [attachment-tags] => black
  189.             [error] =>
  190.             [m] => 0
  191.             [p] => 0
  192.             [post_parent] =>
  193.             [subpost] =>
  194.             [subpost_id] =>
  195.             [attachment] =>
  196.             [attachment_id] => 0
  197.             [name] =>
  198.             [static] =>
  199.             [pagename] =>
  200.             [page_id] => 0
  201.             [second] =>
  202.             [minute] =>
  203.             [hour] =>
  204.             [day] => 0
  205.             [monthnum] => 0
  206.             [year] => 0
  207.             [w] => 0
  208.             [category_name] =>
  209.             [tag] =>
  210.             [cat] =>
  211.             [tag_id] =>
  212.             [author_name] =>
  213.             [feed] =>
  214.             [tb] =>
  215.             [paged] => 0
  216.             [comments_popup] =>
  217.             [meta_key] =>
  218.             [meta_value] =>
  219.             [preview] =>
  220.             [s] =>
  221.             [sentence] =>
  222.             [fields] =>
  223.             [category__in] => Array
  224.                 (
  225.                 )
  226.  
  227.             [category__not_in] => Array
  228.                 (
  229.                 )
  230.  
  231.             [category__and] => Array
  232.                 (
  233.                 )
  234.  
  235.             [post__in] => Array
  236.                 (
  237.                 )
  238.  
  239.             [post__not_in] => Array
  240.                 (
  241.                 )
  242.  
  243.             [tag__in] => Array
  244.                 (
  245.                 )
  246.  
  247.             [tag__not_in] => Array
  248.                 (
  249.                 )
  250.  
  251.             [tag__and] => Array
  252.                 (
  253.                 )
  254.  
  255.             [tag_slug__in] => Array
  256.                 (
  257.                 )
  258.  
  259.             [tag_slug__and] => Array
  260.                 (
  261.                 )
  262.  
  263.             [ignore_sticky_posts] =>
  264.             [suppress_filters] =>
  265.             [cache_results] => 1
  266.             [update_post_term_cache] => 1
  267.             [update_post_meta_cache] => 1
  268.             [post_type] => Array
  269.                 (
  270.                     [0] => attachment
  271.                 )
  272.  
  273.             [posts_per_page] => 1
  274.             [nopaging] =>
  275.             [comments_per_page] => 50
  276.             [no_found_rows] =>
  277.             [taxonomy] => attachment-tags
  278.             [term] => black
  279.             [order] => DESC
  280.             [post_status] => Array
  281.                 (
  282.                     [0] =>
  283.                 )
  284.  
  285.         )
  286.  
  287.     [request] =>  SELECT SQL_CALC_FOUND_ROWS  ge_posts.* FROM ge_posts  INNER JOIN ge_term_relationships ON (ge_posts.ID = ge_term_relationships.object_id) INNER JOIN ge_term_relationships AS tt1 ON (ge_posts.ID = tt1.object_id) LEFT JOIN ge_posts AS p2 ON (ge_posts.post_parent = p2.ID)  WHERE 1=1  AND ( ge_term_relationships.term_taxonomy_id IN (20) AND tt1.term_taxonomy_id IN (20) ) AND ge_posts.post_type IN ('attachment') GROUP BY ge_posts.ID ORDER BY ge_posts.post_date DESC LIMIT 0, 1
  288.     [posts] => Array
  289.         (
  290.             [0] => stdClass Object
  291.                 (
  292.                     [ID] => 31
  293.                     [post_author] => 1
  294.                     [post_date] => 2011-09-16 12:07:19
  295.                     [post_date_gmt] => 2011-09-16 12:07:19
  296.                     [post_content] =>
  297.                     [post_title] => corvette-z06
  298.                     [post_excerpt] =>
  299.                     [post_status] => inherit
  300.                     [comment_status] => open
  301.                     [ping_status] => open
  302.                     [post_password] =>
  303.                     [post_name] => corvette-z06
  304.                     [to_ping] =>
  305.                     [pinged] =>
  306.                     [post_modified] => 2011-09-16 12:07:19
  307.                     [post_modified_gmt] => 2011-09-16 12:07:19
  308.                     [post_content_filtered] =>
  309.                     [post_parent] => 15
  310.                     [guid] => http://web30.srv2.cccc.de/wp/wp-content/uploads/2011/09/corvette-z06.jpg
  311.                     [menu_order] => 0
  312.                     [post_type] => attachment
  313.                     [post_mime_type] => image/jpeg
  314.                     [comment_count] => 0
  315.                     [filter] => raw
  316.                 )
  317.  
  318.         )
  319.  
  320.     [post] => stdClass Object
  321.         (
  322.             [ID] => 31
  323.             [post_author] => 1
  324.             [post_date] => 2011-09-16 12:07:19
  325.             [post_date_gmt] => 2011-09-16 12:07:19
  326.             [post_content] =>
  327.             [post_title] => corvette-z06
  328.             [post_excerpt] =>
  329.             [post_status] => inherit
  330.             [comment_status] => open
  331.             [ping_status] => open
  332.             [post_password] =>
  333.             [post_name] => corvette-z06
  334.             [to_ping] =>
  335.             [pinged] =>
  336.             [post_modified] => 2011-09-16 12:07:19
  337.             [post_modified_gmt] => 2011-09-16 12:07:19
  338.             [post_content_filtered] =>
  339.             [post_parent] => 15
  340.             [guid] => http://web30.srv2.cccc.de/wp/wp-content/uploads/2011/09/corvette-z06.jpg
  341.             [menu_order] => 0
  342.             [post_type] => attachment
  343.             [post_mime_type] => image/jpeg
  344.             [comment_count] => 0
  345.             [filter] => raw
  346.         )
  347.  
  348. )
  349.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement