Add phone/@ to Employers

Hello there,

Is there any way to add text content under employees pictures.
I’d like to add phone number and email under the employer image.

Thanks,
Telot

Dear Telot,

Thank you for asking.

You can add some extra fields to the “Employee Info” meta box by doing the following.

  1. From Dashboard, go to Types > Custom Fields > Employee Info
  2. Pick “Single line” from “Available fields” box. Then enter the following
  • Field name : Phone
  • Field slug : phone

See this screenshot https://cloudup.com/cVq4cRIWqpv

Do other settings necessarily.

  1. Click “Save” button

To display the field value, you should need to edit the code theme file, i.e. widgets/fp-employees.php.

  1. Open widgets/fp-employees.php file
  2. Go to the following line
<div class="employee-position"><?php echo esc_html($position); ?></div>
  1. Right after that line, add the following
<?php
$phone = get_post_meta( get_the_ID(), 'wpcf-phone', true );
if($phone != ''):
?>
<div>
  <?php echo esc_html($phone); ?>
</div>
<?php endif; ?>
  1. Save changes, then upload through FTP or cPanel

P.S.

As you are editing the core theme’s file, you should take it at your own risk. The future theme update will overwrite the changes you have made.

Regards,
Kharis

Thank you!

You’re welcome!

Please let us know in a new topic if you have any other questions or if we can provide you with any other assistance.

Regards,
Kharis