Viewing 7 replies - 1 through 7 (of 7 total)
  • Just add single-company.php in the directory of your theme and adjust it to your preferences .
    You can use the functions in plugins/wp-job-manager/wp-job-manager-template.php to render the company profile page .

    I am getting a 404 when I click on a company name.

    Can you please explain where exactly I should put the file

    single-company.php

    And also do I need (and where does it go)

    taxonomy-job_listing_category.php

    Thanks for your help (and of course for the plugin!)

    Sean

    the file single-company should be in the root directory of your theme
    wp-content/themes/<YOUR_THEME>/single-company.php

    I have got the same problem (blank page) when I click through from company profiles page. Sadly I need really basic steps to follow. I have a child theme. So I go wp-content > themes > child theme (so far so good!)but then I am completely lost over the following steps

    1. Add single-company.php in the directory of your theme – I have functions.php but do I just create a new file and name it single-company.php

    2. Adjust it to your preferences – If just adding the file is correct what do I put in this file? If not where have I gone wrong?

    3. You can use the functions in plugins/wp-job-manager/wp-job-manager-template.php to render the company profile page – I can find this file (not much of a start, I know) but what do I do with it? Is this only if I want to change entry fields or what ever is in there, subject to getting steps 1 and 2 sorted?

    Sorry for all the questions but I would really appreciate it if some one could point me in the right direction.

    Thanks

    @investacube , I will answer your questions :
    1. just add the file and name it single-company.php
    2. adjust to your prefrences means , that you will create the html design of the company profile , there is no default template
    3. here is an example of simple template

    <?php
    get_header(); ?>
    
        <?php the_post(); ?>
        <header class="page-header">
            <h1 class="page-title"><?php printf( 'Jobs at %s', esc_attr( urldecode( get_query_var( 'company' ) ) ) ); ?></h1>
    
            <div class="company-profile-info">
                <ul>
                    <?php if(get_the_company_logo()): ?>
                        <li><?php the_company_logo(); ?></li>
                    <?php endif; ?>
    
                    <?php if ( get_the_company_website() ) : ?>
                    <li>
                        <a href="<?php echo get_the_company_website(); ?>" target="_blank">
                            <?php _e( 'Visit Website'); ?>
                        </a>
                    </li>
                    <?php endif; ?>
    
                    <?php if ( get_the_company_twitter() ) : ?>
                    <li><a href="https://twitter.com/<?php echo get_the_company_twitter(); ?>">
                        <i class="icon-twitter"></i>
                        <?php _e( 'Twitter'); ?>
                    </a></li>
                    <?php endif; ?>
                </ul>
            </div>        
    
            <h2 class="page-subtitle"><strong><?php printf( _n( '%d Job Available', '%d Jobs Available', $wp_query->found_posts ), $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>
        </header>
        <?php rewind_posts(); ?>
    
        <div id="primary" class="content-area">
            <div id="content" class="site-content full" role="main">
                <div class="company-profile">
    
                    <div class="company-proflie-jobs">
                        <?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 -->
    
    <?php get_footer(); ?>

    Most of the functions used in this template will be found in plugins/wp-job-manager/wp-job-manager-template.php

    Wow! Thank you for you help I really appreciate it. I would have been a long way from getting this up and running if left to my own devices!

    I followed these steps and am still getting a 404 message when I click on the company on the companies page. Any help would be welcome.

    Site is https://leetlink.com/jobs/ if that will help. Twenty Twelve is the theme, multisite is activated, and I’m using 3.7.1 of WordPress.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to see company profiles’ is closed to new replies.