Starter Templates
These are complete, ready-to-use WordPress page templates for the RecMan plugin. Copy them into your theme and customize as needed.
Job Post Listing Template
Section titled “Job Post Listing Template”A complete listing page with company logos, excerpts, and job metadata.
<?php /* Template Name: Job Posts Listing */ get_header(); ?>
<main>
<?php // Show any WordPress page content above the job feed if (have_posts()): while (have_posts()): the_post(); ?> <section> <?php the_content(); ?> </section> <?php endwhile; endif; ?>
<section> <?php if (function_exists('have_jobposts') && have_jobposts()): ?>
<?php while (have_jobposts()): the_jobpost(); ?>
<a href="<?php echo get_jobpost('permalink'); ?>">
<?php if ($logo = get_jobpost('logo')): ?> <div> <img src="<?php echo $logo; ?>" alt="<?php the_jobpost('name'); ?>" /> </div> <?php endif; ?>
<div> <header> <h3><?php the_jobpost('name'); ?></h3> </header>
<div class="job-excerpt"> <p><?php the_jobpost('excerpt'); ?></p> </div>
<footer> <ul> <?php if ($pos = get_jobpost('numberOfPositions')): ?> <li><i>Positions</i> <?php echo $pos; ?></li> <?php endif; ?>
<?php if ($place = get_jobpost('workplace')): ?> <li><i>Location</i> <?php echo $place; ?></li> <?php endif; ?>
<?php if ($type = get_jobpost('type')): ?> <li><i>Type</i> <?php echo $type; ?></li> <?php endif; ?>
<?php if ($deadline = get_jobpost('deadline')): ?> <li><i>Deadline</i> <?php echo $deadline; ?></li> <?php endif; ?> </ul> </footer> </div>
</a>
<?php endwhile; ?>
<?php else: ?> <h3>No available jobs at this point</h3> <?php endif; ?>
</section></main>
<?php get_footer(); ?>Individual Job Post Template
Section titled “Individual Job Post Template”A complete single job page with job details, sidebar info, contact persons, and images.
<?php /* Template Name: Job Post Page */ get_header(); ?>
<main> <article> <header> <?php if ($name = get_jobpost('name')): ?> <h1><?php echo $name; ?></h1> <?php endif; ?> </header>
<article> <?php if ($ingress = get_jobpost('companyDescription')): ?> <p><strong><?php echo $ingress; ?></strong></p> <?php endif; ?>
<?php the_jobpost('body'); ?> </article>
<aside>
<?php if (get_jobpost('logo')): ?> <div class="logo"> <img src="<?php the_jobpost('logo'); ?>" /> </div> <?php endif; ?>
<a href="<?php the_jobpost('apply'); ?>" class="button">Apply Now</a>
<div> <?php if (get_jobpost('companyName')): ?> <label>Company</label> <span><?php the_jobpost('companyName'); ?></span> <?php endif; ?>
<?php if (get_jobpost('salary')): ?> <label>Salary</label> <span><?php the_jobpost('salary'); ?></span> <?php endif; ?>
<?php if (get_jobpost('deadline')): ?> <label>Application Deadline</label> <span><?php the_jobpost('deadline'); ?></span> <?php endif; ?>
<?php if (get_jobpost('workplace')): ?> <label>Workplace</label> <span><?php the_jobpost('workplace'); ?></span> <?php endif; ?>
<?php if (get_jobpost('title')): ?> <label>Title</label> <span><?php the_jobpost('title'); ?></span> <?php endif; ?>
<?php if (get_jobpost('sector')): ?> <label>Sector</label> <span><?php the_jobpost('sector'); ?></span> <?php endif; ?>
<?php if (get_jobpost('type')): ?> <label>Type</label> <span><?php the_jobpost('type'); ?></span> <?php endif; ?>
<?php if (get_jobpost('numberOfPositions')): ?> <label>Number of Positions</label> <span><?php the_jobpost('numberOfPositions'); ?></span> <?php endif; ?>
<?php if (get_jobpost('branchCategory')): ?> <label>Branch Category</label> <span><?php the_jobpost('branchCategory'); ?></span> <?php endif; ?>
<?php if (get_jobpost('branch')): ?> <label>Branch</label> <span><?php the_jobpost('branch'); ?></span> <?php endif; ?>
<?php if (get_jobpost('facebook') || get_jobpost('website') || get_jobpost('linkedIn')): ?> <label>Links</label> <ul> <?php if (get_jobpost('website')): ?> <li><a href="<?php the_jobpost('website'); ?>">Website</a></li> <?php endif; ?> <?php if (get_jobpost('facebook')): ?> <li><a href="<?php the_jobpost('facebook'); ?>">Facebook</a></li> <?php endif; ?> <?php if (get_jobpost('linkedIn')): ?> <li><a href="<?php the_jobpost('linkedIn'); ?>">LinkedIn</a></li> <?php endif; ?> </ul> <?php endif; ?> </div>
<?php if (have_jobpost_object('contacts')): ?> <?php while (have_jobpost_object('contacts')): the_jobpost_object(); ?> <div class="contact-person"> <?php if (get_jobpost_object('image')): ?> <img src="<?php the_jobpost_object('image'); ?>" alt="<?php the_jobpost_object('name'); ?>" /> <?php endif; ?> <div> <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> </div> <?php endwhile; ?> <?php endif; ?>
</aside>
</article>
<?php $images = get_jobpost('images'); if ($images): foreach ($images as $image): ?> <section class="full-width-image"> <img src="<?php echo $image; ?>" alt="<?php the_jobpost('name'); ?>" /> </section> <?php endforeach; endif; ?>
<?php // Similar jobs if (($similar = get_jobpost('similarJobs')) && is_array($similar)): ?> <section class="similar-jobs"> <h3>Similar Positions</h3> <?php foreach ($similar as $id): ?> <a href="<?php the_jobpost('permalink', $id); ?>"> <img src="<?php the_jobpost('logo', $id); ?>" alt="<?php the_jobpost('companyName', $id); ?>" /> <div> <h4><?php the_jobpost('name', $id); ?></h4> <span><?php the_jobpost('title', $id); ?></span> </div> </a> <?php endforeach; ?> </section> <?php endif; ?>
</main>
<?php get_footer(); ?>