HostOnNet Blog

How to fix WP Job Manager – Company Profiles plugin

Looking for Linux Server Admin or WordPress Expert? We can help.

Installed WP Job Manager – Company Profiles plugin in http://jobs.bizhat.com. But when I clicks on one of the companies, it takes to error 404 page.

I fixed it by doing the following steps.

STEP 1 : Created Browse Companies page and added shortcode.

[job_manager_companies]

STEP 2 : Created single-company.php with following content and uploaded to theme folder.

<?php
/**
 * Single Post
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 */

get_header(); ?>

<section>
<!--website-breadcrumbs-->
<div class="col-md-12 bread-row">
	<div class="container">
		<div class="col-md-12 no-padding-lr bread-left">
			<h2><?php printf( esc_attr( urldecode( get_query_var( apply_filters( 'wp_job_manager_companies_company_slug', 'company' ) ) ) ) ); ?></h2>
		</div>	
	</div>
</div>

<div class="container">    
	<div class="row">
		<div class="col-md-12 no-padding-lr article-content margin-top-50">
			<div class="latest-job article-row1">
					<?php the_post(); ?>
					
					<article class="job_listing-widget default-widget">
							<div class="company-profile-info job-meta col-md-12 col-sm-12 col-xs-12">
								<article class="job_listing-widget default-widget">					
									<h3 class="job_listing-widget-title"><?php _e( 'Company Details', 'OpenTute' ); ?></h3>	
										<table class="table">
										<tr>		
										<td colspan="6" class="company-bg"><?php the_company_logo(); ?></td></tr>
										<tr>
										<td>Company Name :</td><td> <?php the_company_name( '<strong>', '</strong>' ); ?></td>
										<td>Location :</td><td> <?php the_job_location(); ?></td>
										<td>Website : </td><td> <a href="<?php echo get_the_company_website(); ?>" itemprop="url"><?php echo get_the_company_website(); ?></a></td>
										</tr>
										</table>
								</article>
								<article class="job_listing-widget default-widget">
									<?php get_template_part( 'content-share' ); ?>
								</article>

							</div>
					</article>

					<h1 class="page-title"><?php printf( __( 'Jobs at %s', 'OpenTute' ), esc_attr( urldecode( get_query_var( apply_filters( 'wp_job_manager_companies_company_slug', 'company' ) ) ) ) ); ?></h1>

					<h2 class="page-subtitle"><strong><?php printf( _n( '%d Job Available', '%d Jobs Available', $wp_query->found_posts, 'OpenTute' ), $wp_query->found_posts ); ?></strong> <?php if ( get_the_company_tagline( get_the_ID() ) ) : ?>&bull; <?php the_company_tagline( '', '', true, get_the_ID() ); ?><?php endif; ?></h2>


				<?php rewind_posts(); ?>

				<div id="primary" class="content-area">
					<div id="content" class="container" role="main">
						<div class="company-profile row">

							<div class="company-profile-jobs col-md-10 col-sm-8 col-xs-12">
								<?php if ( have_posts() ) : ?>
								<div class="job_listings">
									<ul class="job_listings">
										<?php while ( have_posts() ) : the_post(); ?>
											<?php get_job_manager_template_part( 'content', 'job_listing' ); ?>
										<?php endwhile; ?>
									</ul>
								</div>
								<?php else : ?>
									<?php get_template_part( 'content', 'none' ); ?>
								<?php endif; ?>
							</div>

						</div>
					</div><!-- #content -->
				</div><!-- #primary -->


			</div><!-- latest-job -->
		</div><!-- col-md-12 -->
	</div><!-- row -->
</div><!-- container -->

<?php get_footer(); ?>

You can now visit the website to see the comapany profile page in action.

Fix WordPress Theme

We can install, modify, edit and restore your WordPress theme. We can also customize your theme and add new features such as template pages. Contact [email protected]

About Sibi Antony

Bootstrap and Android LOVER. I've been creating things for the web for over 10 years, from the period of flash and table based layout web sites till mobile and tab friendly web sites.
Posted in Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.