Google Map Latitude and Longitude values in form

Take a look at this I did for a client: http://lpoc.co.uk/properties-for-sale/ A user can click the map and choose where to search. When a user clicks it updates a couple of hidden fields. Feel free to look at the source code to see how its done. If you want a more in depth description of … Read more

How to redirect new WordPress user to previous page after registering

There’s a registration_redirect filter you can use: add_filter( ‘registration_redirect’, ‘wpse_129618_registration_redirect’ ); function wpse_129618_registration_redirect( $redirect ) { if( isset( $_SERVER[‘HTTP_REFERER’] ) && 0 != strlen( $_SERVER[‘HTTP_REFERER’] ) ) { $redirect = esc_url( $_SERVER[‘HTTP_REFERER’] ); } return $redirect; } Alternately, you can edit the PHP that is generating your <form> and add a hidden field named redirect_to, … Read more

How to edit custom user meta information front end

I have solved it. In the redirect I changed if (count($error) == 0 ){ to if (count($error) < 1 ){ Also for any custom user meta fields added duplicated the following line and change the word ‘description’ to the name of the field create in your function file. if ( !empty( $_POST[‘description’] ) ) update_user_meta( … Read more

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