Undefined index: meta_key in file C:\laragon\www\example\wp-content\plugin
-
I was trying to run a query using
relevanssi_do_query( $query );
Complete code looks like this.
$args = array( 'post_type' => 'product', 'posts_per_page' => 1, 'orderby' => 'meta_value_num', 'meta_key' => '_price', 'order' => 'desc' ); $query = new \WP_Query($args); $query->parse_query($args); relevanssi_do_query( $query );
Error:
Undefined index: meta_key in file C:\laragon\www\example\wp-content\plugins\relevanssi-premium\lib\sorting.php on line 157
Version using: Relevanssi Premium [2.12.2]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined index: meta_key in file C:\laragon\www\example\wp-content\plugin’ is closed to new replies.