Skip to content

Instantly share code, notes, and snippets.

@iammahmudur
Created June 28, 2013 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammahmudur/2b526713a14fb3b8fd05 to your computer and use it in GitHub Desktop.
Save iammahmudur/2b526713a14fb3b8fd05 to your computer and use it in GitHub Desktop.
[28-Jun-2013 00:06:40] WP_Query Object
(
[query_vars] => Array
(
[post_type] => Array
(
[0] => post
)
[connected_orderby] => _order_from
[connected_order] => ASC
[connected_order_num] => 1
[connected_items] => WP_Post Object
(
[ID] => 9582
[post_author] => 1
[post_date] => 2013-06-20 05:58:23
[post_date_gmt] => 2013-06-19 19:58:23
[post_content] =>
[post_title] => Brian McFadden
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden
[to_ping] =>
[pinged] =>
[post_modified] => 2013-06-20 15:58:29
[post_modified_gmt] => 2013-06-20 05:58:29
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/artist/brian-mcfadden/
[menu_order] => 0
[post_type] => artist
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[paged] => 1
[error] =>
[m] => 0
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[name] =>
[static] =>
[pagename] =>
[page_id] => 0
[second] =>
[minute] =>
[hour] =>
[day] => 0
[monthnum] => 0
[year] => 0
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author_name] =>
[feed] =>
[tb] =>
[comments_popup] =>
[meta_key] =>
[meta_value] =>
[preview] =>
[s] =>
[sentence] =>
[fields] =>
[menu_order] =>
[category__in] => Array
(
)
[category__not_in] => Array
(
)
[category__and] => Array
(
)
[post__in] => Array
(
)
[post__not_in] => Array
(
)
[tag__in] => Array
(
)
[tag__not_in] => Array
(
)
[tag__and] => Array
(
)
[tag_slug__in] => Array
(
)
[tag_slug__and] => Array
(
)
[connected_meta] => Array
(
)
[suppress_filters] =>
[ignore_sticky_posts] => 1
[cache_results] => 1
[update_post_term_cache] => 1
[update_post_meta_cache] => 1
[posts_per_page] => 10
[nopaging] =>
[comments_per_page] => 50
[no_found_rows] =>
[order] => DESC
)
[tax_query] => WP_Tax_Query Object
(
[queries] => Array
(
)
[relation] => AND
)
[meta_query] => WP_Meta_Query Object
(
[queries] => Array
(
)
[relation] =>
)
[post_count] => 10
[current_post] => -1
[in_the_loop] =>
[comment_count] => 0
[current_comment] => -1
[found_posts] => 29
[max_num_pages] => 3
[max_num_comment_pages] => 0
[is_single] =>
[is_preview] =>
[is_page] =>
[is_archive] => 1
[is_date] =>
[is_year] =>
[is_month] =>
[is_day] =>
[is_time] =>
[is_author] =>
[is_category] =>
[is_tag] =>
[is_tax] =>
[is_search] =>
[is_feed] =>
[is_comment_feed] =>
[is_trackback] =>
[is_home] =>
[is_404] =>
[is_comments_popup] =>
[is_paged] =>
[is_admin] =>
[is_attachment] =>
[is_singular] =>
[is_robots] =>
[is_posts_page] =>
[is_post_type_archive] =>
[query_vars_hash] => 323e9ba24cc95d670b37883ba7f521d7
[query_vars_changed] => 1
[thumbnails_cached] =>
[query] => Array
(
[connected_type] => artists_to_posts
[connected_items] => WP_Post Object
(
[ID] => 9582
[post_author] => 1
[post_date] => 2013-06-20 05:58:23
[post_date_gmt] => 2013-06-19 19:58:23
[post_content] =>
[post_title] => Brian McFadden
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden
[to_ping] =>
[pinged] =>
[post_modified] => 2013-06-20 15:58:29
[post_modified_gmt] => 2013-06-20 05:58:29
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/artist/brian-mcfadden/
[menu_order] => 0
[post_type] => artist
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[paged] => 1
)
[_p2p_query] => P2P_Query Object
(
[ctypes:protected] => Array
(
[0] => P2P_Directed_Connection_Type Object
(
[ctype:protected] => P2P_Connection_Type Object
(
[side] => Array
(
[from] => P2P_Side_Post Object
(
[item_type:protected] => P2P_Item_Post
[query_vars] => Array
(
[post_type] => Array
(
[0] => artist
)
)
)
[to] => P2P_Side_Post Object
(
[item_type:protected] => P2P_Item_Post
[query_vars] => Array
(
[post_type] => Array
(
[0] => post
)
)
)
)
[cardinality] => Array
(
[from] => many
[to] => many
)
[labels] => Array
(
[from] => Array
(
[column_title] => Posts
)
[to] => Array
(
[column_title] => Artists
)
)
[title:protected] => Array
(
[from] => Posts
[to] => Artists
)
[fields] => Array
(
)
[name] => artists_to_posts
[data] => Array
(
)
[duplicate_connections] =>
[self_connections] =>
[sortable] => any
[reciprocal] =>
[strategy] => P2P_Determinate_Connection_Type Object
(
)
)
[direction:protected] => from
)
)
[items:protected] => WP_Post Object
(
[ID] => 9582
[post_author] => 1
[post_date] => 2013-06-20 05:58:23
[post_date_gmt] => 2013-06-19 19:58:23
[post_content] =>
[post_title] => Brian McFadden
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden
[to_ping] =>
[pinged] =>
[post_modified] => 2013-06-20 15:58:29
[post_modified_gmt] => 2013-06-20 05:58:29
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/artist/brian-mcfadden/
[menu_order] => 0
[post_type] => artist
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[query:protected] => Array
(
)
[meta:protected] => Array
(
)
[orderby:protected] => _order_from
[order:protected] => ASC
[order_num:protected] => 1
)
[request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.*, wp_p2p.* FROM wp_posts INNER JOIN wp_p2p
LEFT JOIN wp_p2pmeta AS p2pm_order ON (
wp_p2p.p2p_id = p2pm_order.p2p_id AND p2pm_order.meta_key = '_order_from'
)
WHERE 1=1 AND wp_posts.post_type IN ('post') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') AND (wp_p2p.p2p_type = 'artists_to_posts' AND wp_posts.ID = wp_p2p.p2p_to AND wp_p2p.p2p_from IN (SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (9582) AND wp_posts.post_type IN ('artist') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC )) ORDER BY p2pm_order.meta_value+0 ASC, wp_posts.post_date DESC LIMIT 0, 10
[posts] => Array
(
[0] => WP_Post Object
(
[ID] => 86121
[post_author] => 1
[post_date] => 2012-04-13 14:17:00
[post_date_gmt] => 2012-04-13 04:17:00
[post_content] => Turns out Brian McFadden is not just a pretty face he is also an amazing vocalist. Well, we knew this already...but incase we had forgotten here is a couple of vids from his performance this morning on Sunrise as he shows off his new single and a cover of Adele's Someone Like You. Amazing.<br /><br /><br /> <center> <center></center></center>
[post_title] => Brian McFadden On Sunrise Singing Wrap My Arms + Covering Adele!
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-on-sunrise-singing-wrap-my-arms-covering-adele
[to_ping] =>
[pinged] =>
[post_modified] => 2012-04-13 14:17:00
[post_modified_gmt] => 2012-04-13 04:17:00
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-on-sunrise-singing-wrap-my-arms-covering-adele/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 66000
[p2p_from] => 9582
[p2p_to] => 86121
[p2p_type] => artists_to_posts
)
[1] => WP_Post Object
(
[ID] => 75145
[post_author] => 1
[post_date] => 2011-10-05 13:33:00
[post_date_gmt] => 2011-10-05 03:33:00
[post_content] => <p></p>
[post_title] => Brian McFadden To Perform Two Exclusive Shows
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-to-perform-two-exclusive-shows
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:23:36
[post_modified_gmt] => 2013-05-27 23:23:36
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-to-perform-two-exclusive-shows/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 65746
[p2p_from] => 9582
[p2p_to] => 75145
[p2p_type] => artists_to_posts
)
[2] => WP_Post Object
(
[ID] => 74784
[post_author] => 1
[post_date] => 2011-06-02 12:47:00
[post_date_gmt] => 2011-06-02 02:47:00
[post_content] => <br>
[post_title] => BRIAN McFADDEN RELEASES DOUBLE A SIDE SINGLE
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-releases-double-a-side-single
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:17:58
[post_modified_gmt] => 2013-05-27 23:17:58
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-releases-double-a-side-single/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 65560
[p2p_from] => 9582
[p2p_to] => 74784
[p2p_type] => artists_to_posts
)
[3] => WP_Post Object
(
[ID] => 74515
[post_author] => 1
[post_date] => 2011-02-28 16:13:00
[post_date_gmt] => 2011-02-28 06:13:00
[post_content] => Fresh off the plane from LA
[post_title] => Brian McFadden â??Just The Way You Are (Drunk At The Bar)â??
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-a%c2%80%c2%98just-the-way-you-are-drunk-at-the-bara%c2%80%c2%99
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:14:02
[post_modified_gmt] => 2013-05-27 23:14:02
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-a%c2%80%c2%98just-the-way-you-are-drunk-at-the-bara%c2%80%c2%99/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 65423
[p2p_from] => 9582
[p2p_to] => 74515
[p2p_type] => artists_to_posts
)
[4] => WP_Post Object
(
[ID] => 91271
[post_author] => 1
[post_date] => 2010-09-01 17:49:00
[post_date_gmt] => 2010-09-01 07:49:00
[post_content] => Behind the scenes of the Mistakes video
[post_title] => Behind the scenes of the Mistakes video
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => behind-the-scenes-of-the-mistakes-video
[to_ping] =>
[pinged] =>
[post_modified] => 2010-09-01 17:49:00
[post_modified_gmt] => 2010-09-01 07:49:00
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/behind-the-scenes-of-the-mistakes-video/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 67101
[p2p_from] => 9582
[p2p_to] => 91271
[p2p_type] => artists_to_posts
)
[5] => WP_Post Object
(
[ID] => 73909
[post_author] => 1
[post_date] => 2010-09-01 08:00:00
[post_date_gmt] => 2010-08-31 22:00:00
[post_content] => Check out the behind-the-scenes video <br>
[post_title] => Check out the behind-the-scenes video of Brian's 'Mistake' video
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => check-out-the-behind-the-scenes-video-of-brians-mistake-video
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:06:09
[post_modified_gmt] => 2013-05-27 23:06:09
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/check-out-the-behind-the-scenes-video-of-brians-mistake-video/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 65100
[p2p_from] => 9582
[p2p_to] => 73909
[p2p_type] => artists_to_posts
)
[6] => WP_Post Object
(
[ID] => 73636
[post_author] => 1
[post_date] => 2010-07-05 05:04:00
[post_date_gmt] => 2010-07-04 19:04:00
[post_content] => <br>
[post_title] => Brian McFadden announces two exclusive shows
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-announces-two-exclusive-shows
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:02:43
[post_modified_gmt] => 2013-05-27 23:02:43
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-announces-two-exclusive-shows/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 64963
[p2p_from] => 9582
[p2p_to] => 73636
[p2p_type] => artists_to_posts
)
[7] => WP_Post Object
(
[ID] => 73512
[post_author] => 1
[post_date] => 2010-06-15 10:06:00
[post_date_gmt] => 2010-06-15 00:06:00
[post_content] => <br>
[post_title] => Brian McFadden to perform 'Chemical Rush' on TV tonight!
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-to-perform-chemical-rush-on-tv-tonight
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:01:25
[post_modified_gmt] => 2013-05-27 23:01:25
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-to-perform-chemical-rush-on-tv-tonight/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 64900
[p2p_from] => 9582
[p2p_to] => 73512
[p2p_type] => artists_to_posts
)
[8] => WP_Post Object
(
[ID] => 73490
[post_author] => 1
[post_date] => 2010-06-09 04:56:00
[post_date_gmt] => 2010-06-08 18:56:00
[post_content] => <br>
[post_title] => Brian McFadden's unleashes second single â??Chemical Rushâ??
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfaddens-unleashes-second-single-a%c2%80%c2%98chemical-rusha%c2%80%c2%99
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:01:10
[post_modified_gmt] => 2013-05-27 23:01:10
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfaddens-unleashes-second-single-a%c2%80%c2%98chemical-rusha%c2%80%c2%99/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 64889
[p2p_from] => 9582
[p2p_to] => 73490
[p2p_type] => artists_to_posts
)
[9] => WP_Post Object
(
[ID] => 73444
[post_author] => 1
[post_date] => 2010-05-26 04:53:00
[post_date_gmt] => 2010-05-25 18:53:00
[post_content] => as
[post_title] => Win Tickets to Brian McFadden's secret Sydney show!
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => win-tickets-to-brian-mcfaddens-secret-sydney-show
[to_ping] =>
[pinged] =>
[post_modified] => 2013-05-28 09:00:30
[post_modified_gmt] => 2013-05-27 23:00:30
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/win-tickets-to-brian-mcfaddens-secret-sydney-show/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 64865
[p2p_from] => 9582
[p2p_to] => 73444
[p2p_type] => artists_to_posts
)
)
[post] => WP_Post Object
(
[ID] => 86121
[post_author] => 1
[post_date] => 2012-04-13 14:17:00
[post_date_gmt] => 2012-04-13 04:17:00
[post_content] => Turns out Brian McFadden is not just a pretty face he is also an amazing vocalist.
[post_title] => Brian McFadden On Sunrise Singing Wrap My Arms + Covering Adele!
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => brian-mcfadden-on-sunrise-singing-wrap-my-arms-covering-adele
[to_ping] =>
[pinged] =>
[post_modified] => 2012-04-13 14:17:00
[post_modified_gmt] => 2012-04-13 04:17:00
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/brian-mcfadden-on-sunrise-singing-wrap-my-arms-covering-adele/
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
[p2p_id] => 66000
[p2p_from] => 9582
[p2p_to] => 86121
[p2p_type] => artists_to_posts
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment