I've gotten used to the Custom Code tab, but I can't seem to get the results I need. Can you assist? I'm not sure I'm using the correct information for the key; using the slug for now. Not sure about the "0" placeholder in add-filter. I think I have the form code correct with 59437. Thank you!
add_filter( 'wpv_filter_query', 'q', 0, 59437 );
$q = new WP_Query( array(
'meta_query' => array(
'relation' => 'AND',
'thickD_clause' => array(
'key' => 'mouldings-thickness-d',
'compare' => 'EXISTS',
),
'widthD_clause' => array(
'key' => 'mouldings-width-d',
'compare' => 'EXISTS',
),
),
'orderby' => array(
'thickD_clause' => 'ASC',
'widthD_clause' => 'ASC',
),
) );
ERRORS
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'q' not found or invalid function name in /homepages/42/d272698695/htdocs/HH2020/wp-includes/class-wp-hook.php on line 287
Warning: in_array() expects parameter 2 to be array, null given in /homepages/42/d272698695/htdocs/HH2020/wp-content/plugins/toolset-blocks/embedded/inc/filters/wpv-filter-status-embedded.php on line 45
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'q' not found or invalid function name in /homepages/42/d272698695/htdocs/HH2020/wp-includes/class-wp-hook.php on line 287
Warning: in_array() expects parameter 2 to be array, null given in /homepages/42/d272698695/htdocs/HH2020/wp-content/plugins/toolset-blocks/embedded/inc/filters/wpv-filter-status-embedded.php on line 45
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'q' not found or invalid function name in /homepages/42/d272698695/htdocs/HH2020/wp-includes/class-wp-hook.php on line 287
Warning: in_array() expects parameter 2 to be array, null given in /homepages/42/d272698695/htdocs/HH2020/wp-content/plugins/toolset-blocks/embedded/inc/filters/wpv-filter-status-embedded.php on line 45