[job_post_contacts]
The [job_post_contacts] shortcode renders contact person details for the current job post, including photo, name, email, and phone number.
[job_post_contacts]This shortcode is designed for use on individual job post pages.
What It Displays
Section titled “What It Displays”For each contact person attached to the job post:
- Photo — profile image
- Name — full name (first + last)
- Email — email address
- Phone — phone number
Using Template Functions Instead
Section titled “Using Template Functions Instead”For more control over the layout, use the template function approach with the nested object loop:
<?php if (have_jobpost_object('contacts')): ?> <div class="contacts"> <?php while (have_jobpost_object('contacts')): the_jobpost_object(); ?> <div class="contact"> <?php if (get_jobpost_object('image')): ?> <img src="<?php echo get_jobpost_object('image'); ?>" alt="<?php the_jobpost_object('name'); ?>" /> <?php endif; ?>
<h4><?php the_jobpost_object('name'); ?></h4>
<?php if (get_jobpost_object('title')): ?> <span><?php the_jobpost_object('title'); ?></span> <?php endif; ?>
<?php if (get_jobpost_object('email')): ?> <a href="mailto:<?php the_jobpost_object('email'); ?>"> <?php the_jobpost_object('email'); ?> </a> <?php endif; ?>
<?php if (get_jobpost_object('mobilePhone')): ?> <span><?php the_jobpost_object('mobilePhone'); ?></span> <?php endif; ?> </div> <?php endwhile; ?> </div><?php endif; ?>Contact Person Fields
Section titled “Contact Person Fields”| Field | Description |
|---|---|
name | Full name (firstName + lastName) |
firstName | First name |
lastName | Last name |
title | Job title |
email | Email address |
mobilePhone | Mobile phone number |
officePhone | Office phone number |
linkedin | LinkedIn profile URL |
image | Profile image URL |
userId | RecMan user ID |