diff --git a/includes/custom-field-ajuts-filter-function-frontend.php b/includes/custom-field-ajuts-filter-function-frontend.php index 97460ee..d6d170d 100644 --- a/includes/custom-field-ajuts-filter-function-frontend.php +++ b/includes/custom-field-ajuts-filter-function-frontend.php @@ -6,9 +6,6 @@ * basic start * https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/ * - * wordpress full form example - * https://wordpress.stackexchange.com/questions/383599/form-checkbox-value-going-to-dynamic-url - * * checkbox adaptation query * https://wordpress.stackexchange.com/a/102915 * @@ -17,169 +14,140 @@ * * @package Oficina_de_Suport_theme */ -?> -$_POST[submit-ajut] set
'; +// if( !empty($_POST[ $fields['name'] ]) ){ +// echo '$_POST[$fields[name]] not empty
'; +// foreach( $_POST[ $fields['name'] ] as $post_fields_name ) { +// $post_fields_name_value_checked[] = $post_fields_name; +// }; +// $all_post_fields_name_values_selection[] = $fields['name'] . '=' . implode(',',$post_fields_name_value_checked); +// unset($post_fields_name_values_checked); +// } else { +// echo '$_POST[$fields[name]] empty
'; +// }; +// //end look for checked values to send +// echo 'after $_POST:' . $url . '
'; +// }; +// // end look checked values to send +//} + if( ! function_exists( 'ofisuport_ajuts_filters_form' ) ): function ofisuport_ajuts_filters_form() { -?> -' . $url . '
'; + //header('Location:'. $url); + echo ''; + echo ''; + //close the form and subit + //POST_look_values_to_submit(); -