How to capture number input from wordpress form into acf field in woocommerce

Try using the wpuf_add_post_after_insert hook. This hook gets triggered right after a post is created using WPUF, which means it might be a more appropriate time to save additional data, like the phone number: add_action(‘wpuf_add_post_after_insert’, ‘update_product_acf_field_guest_submission’, 10, 3); function update_product_acf_field_guest_submission($post_id, $form_id, $form_settings) { // Check if the form ID matches the specific form where the … Read more

Pagination with WP_query giving same items in each page

After digging for sometime I’ve managed to solve it. The issue was I wasn’t passing paged variable in the args. After passing it and tweaking the pagination logic it is working now. <?php $data = getData(); if(!empty($_REQUEST[‘posts’])){ $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 15, ‘category_name’ => $_REQUEST[‘posts’], ‘paged’ => $paged … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)