array(1) {
[0]=>
string(156) "Grave of Mark Sandman. Mark Sandman was born on September 24, 1952 and died in Giardini del Principe, Palestrina, Italy due to Heart attack on July 3, 1999."
}
array(1) {
[0]=>
string(174) "Grave of Bunk Johnson. Bunk Johnson was born on December 27, 1885 and died in 638 Franklin Street, New Iberia, Louisiana due to Lingering effects of a stroke on July 7, 1949."
}
Default Args
array(5) {
["paged"]=>
int(2)
["posts_per_page"]=>
int(15)
["numberposts"]=>
int(-1)
["default_sort"]=>
string(18) "query_popular_name"
["default_sort_order"]=>
string(3) "asc"
}
Args
array(9) {
["paged"]=>
int(2)
["post_type"]=>
string(6) "graves"
["posts_per_page"]=>
int(15)
["numberposts"]=>
int(15)
["post_status"]=>
array(3) {
[0]=>
string(7) "publish"
[1]=>
string(7) "pending"
[2]=>
string(5) "draft"
}
["meta_query"]=>
array(4) {
["relation"]=>
string(3) "AND"
["query_acfs"]=>
array(1) {
["relation"]=>
string(2) "OR"
}
["query_post_status"]=>
array(3) {
["key"]=>
string(11) "post_status"
["compare"]=>
string(1) "="
["value"]=>
string(9) "Published"
}
["query_sort_name"]=>
array(2) {
["key"]=>
string(9) "sort_name"
["compare"]=>
string(6) "EXISTS"
}
}
["orderby"]=>
string(10) "meta_value"
["meta_key"]=>
string(18) "query_popular_name"
["order"]=>
string(3) "ASC"
}
Sort By
Query
string(685) "SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) INNER JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id )
WHERE 1=1 AND (
wp_postmeta.meta_key = 'query_popular_name'
AND
(
( mt1.meta_key = 'post_status' AND mt1.meta_value = 'Published' )
AND
mt2.meta_key = 'sort_name'
)
) AND wp_posts.post_type = 'graves' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending'))
GROUP BY wp_posts.ID
ORDER BY wp_postmeta.meta_value ASC
LIMIT 15, 15"
Additional Query Info