Generate new URL for popup form
In your example they just use a link which points to the anchor “#login2”. Try using a <a href=”#login”>Login</a> link instead of a button.
In your example they just use a link which points to the anchor “#login2”. Try using a <a href=”#login”>Login</a> link instead of a button.
I think I found out where the problem was. the datatype for check_in and check_out in the database was set to DATETIME Instead of DATE yet the code $check_in_db=date(“Y-m-d”,strtotime($check_in)); was converting it to date. I don’t know why it prevented entry of the other data, but after changing that, it is working now. to use … Read more
Gravity Forms will be your solution, but you will have to do some custom notifications. You will also need User Registration Add-On the https://www.gravityforms.com/add-ons/user-registration/ What you will need to do is: Create a hidden field called for example “current user email” and allow it to be populated automatically. Create a user registration feed and select … Read more
Insert data from form to database
Sure! Use the user_register filter (see here https://codex.wordpress.org/Plugin_API/Action_Reference/user_register ). You can call a custom function that will ‘fire’ after the user is added to the database. Your function would send out an email, perhaps. Place the filter in your Child Theme’s function.php file (you want to use a Child Theme so that your changes don’t … Read more
I would use user ID then user IP if not logged in, you can store the result like the following: /* your form validation/submission logiccode goes here */ $max_execution_tim = @ini_get(‘max_execution_time’); $submission_result = array(‘message’ => ‘Worked!’, ‘status’ => ‘success’); // You can use this function: // https://stackoverflow.com/a/6718472/1321398 $user_ip = GetIP(); $transient_name = is_user_logged_in() ? “form_submission_user-” … Read more
You will need to first setup a way to get the category of the current page. Maybe something using get_the_category() or similar. Then after you have done that you want to set the selected argument to the ID of the category you want to be selected. Right now you have it set to -1. See … Read more
Never mind… got it and feel stupid. This did the trick: #field_35_53 td::after { content: attr(data-label); font-size: 14px; letter-spacing: .5pt; white-space: nowrap; display: block; clear: both; }
add_action( ‘user_new_form’, ‘change_label_form’ ); function change_label_form() { echo ‘<script> jQuery(document).ready(function($) { $(“label[for=email]”).html(“Example”); } ); </script>’; } here is trick worked for me , you can change the label for any filed by using the for tag in the label and you can add action on any form you like, as add_action( ‘edit_user_profile_update’, ‘change_label_form’ ); Here … Read more
Ajax show custom post data form & script