@kory
This string in seems to be crashing my site:
post_type=listing&post_status=publish&posts_per_page=50&orderby=date&order=DESC&meta_query%5Brelation%5D=OR&meta_query%5B0%5D%5Brelation%5D=AND&meta_query%5B0%5D%5B0%5D%5Bkey%5D=ffd_parcel_number&meta_query%5B0%5D%5B0%5D%5Bvalue%5D=&meta_query%5B0%5D%5B0%5D%5Bcompare%5D=NOT+LIKE&meta_query%5B0%5D%5B1%5D%5Bkey%5D=ffd_parcel_number&meta_query%5B0%5D%5B1%5D%5Bvalue%5D={{dc:post:meta key=“parcel_number”}}&meta_query%5B0%5D%5B1%5D%5Bcompare%5D=LIKE&meta_query%5B1%5D%5Brelation%5D=AND&meta_query%5B1%5D%5B0%5D%5Bkey%5D=ffd_subdivision&meta_query%5B1%5D%5B0%5D%5Bvalue%5D={{dc:post:meta key=“subdivision”}}&meta_query%5B1%5D%5B0%5D%5Bcompare%5D=LIKE&meta_query%5B1%5D%5B1%5D%5Bkey%5D=ffd_subdivision&meta_query%5B1%5D%5B1%5D%5Bvalue%5D=&meta_query%5B1%5D%5B1%5D%5Bcompare%5D=NOT+LIKE
Here is how I’m generating it:
$query = array(
‘post_type’ => ‘listing’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => ‘50’,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘meta_query’ => array(
‘relation’ => ‘OR’,
array(
‘relation’ => ‘AND’,
array(
‘key’ => ‘ffd_parcel_number’,
‘value’ => ‘’,
‘compare’ => ‘NOT LIKE‘,
),
array(
‘key’ => ‘ffd_parcel_number’,
‘value’ => ‘ENTER HERE’, (in Pro I add {{dc:post:meta key=“ffd_parcel_number”}} here)
‘compare’ => ‘LIKE’,
),
),
array(
‘relation’ => ‘AND’,
array(
‘key’ => ‘ffd_subdivision’,
‘value’ => ‘ENTER HERE’, (in Pro I add {{dc:post:meta key=“subdivision”}} here)
‘compare’ => ‘LIKE’,
),
array(
‘key’ => ‘ffd_subdivision’,
‘value’ => ‘’,
‘compare’ => ‘NOT LIKE‘,
),
),
),
);
Do you see anything wrong here that would be causing the site to crash? Seems like it’s overloading the server somehow.