Push Contact form 7 variable to front end after submission

I have a contact form 7 form that’s sending information to an API. I want to display the API response on the front end. there are 2 ways to go about solving this type of problem, 1- Use the CF7 plugin’s message response hook, add_filter(‘wpcf7_display_message’, ‘my_response_msg’,10,2); function my_response_msg($message, $status){ if(‘mail_sent_ok’==$status){ $form = wpcf7_get_current_contact_form(); //in case … Read more

Attempting to list all product categories and the price range of all products within them

You can get using SQL query – global $wpdb; $results = $wpdb->get_col( ” SELECT pm.meta_value FROM {$wpdb->prefix}term_relationships as t INNER JOIN {$wpdb->prefix}term_taxonomy as tt ON tr.term_taxonomy_id = tt.term_taxonomy_id INNER JOIN {$wpdb->prefix}terms as t ON tr.term_taxonomy_id = t.term_id INNER JOIN {$wpdb->prefix}postmeta as pm ON tr.object_id = pm.post_id WHERE tt.taxonomy LIKE ‘product_cat’ AND t.term_id = {$term->term_id} AND … Read more