NooTheme Premium WordPress Theme › Forums › JobMonster › The email field is always blank
- This topic has 6 replies, 2 voices, and was last updated 3 years, 7 months ago by nipopadyuk.
-
AuthorPosts
-
3 years, 7 months ago #1212517
Good day.
Every time a candidate enters the profile editing, all fields are displayed in his profile, except for the e-mail field. It is always empty when you go into editing a profile. It seems to everyone that they forgot to fill in something and think that this is a mistake. How can this be fixed?
Likewise, in the employer's profile, in the field of the current email address, it is empty, instead of an inscription with the current address. How can this be fixed?
Attachments:
You must be logged in to view attached files.3 years, 7 months ago #1212563Dear, Please kindly send for me admin account and your problem URL via private reply, I will check details to help you.
Best regards.
3 years, 7 months ago #1212567This reply has been marked as private.3 years, 7 months ago #1212575Dear, the email not show because you custom function 'remove_email_address' in file functions.php of your theme. Please remove it and check again.
Best regards.
3 years, 7 months ago #1212576Dear, the email not show because you custom function 'remove_email_address' in file functions.php of your theme. Please remove it and check again. Best regards.
I found this function on this forum, it should prohibit deleting email addresses in the field of job descriptions and resume.
Is there any way to rewrite this function so that it only works in description fields?
3 years, 7 months ago #1212578You can check and only apply for single job or resume, eg
function remove_email_address($content){ if(is_singular('noo_job') || is_singular('noo_resume')){ return preg_replace_callback('/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4})/i', function($email){ return ' '; }, $content); } return $content; } add_filter( 'the_content', 'remove_email_address', 20 ); add_filter( 'widget_text', 'remove_email_address', 20 );
Best regards.
3 years, 7 months ago #1212583You can check and only apply for single job or resume, eg
function remove_email_address($content){ if(is_singular('noo_job') || is_singular('noo_resume')){ return preg_replace_callback('/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4})/i', function($email){ return ' '; }, $content); } return $content; } add_filter( 'the_content', 'remove_email_address', 20 ); add_filter( 'widget_text', 'remove_email_address', 20 );
Best regards.
It looks like it works. Thank you!
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.