Support » Plugin: WP Broadbean » Limit/ customise what is output on /jobs/ page

  • Is it possible to limit the text that is output on the /jobs page?

    For example we currently have the Job Title & Detailed Description being output on the jobs page. Is there a way to customise what is output here or simply just have the job title out put and nothing else until they click through to the individual job page?

    Any help with this would be greatly appreciated.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mark Wilkinson


    The /jobs page is just using the WordPress template hierarchy to use the appropriate template in your theme.

    Therefore if you want to change the way that file looks or add/remove stuff, you can make a copy of your themes current archive.php template and save it as archive-wpbb_job.php in your theme. This template will then be used instead and you can make changes.

    It is worth pointing out that if you are not using a child theme, that may be a good idea as you are making changes to your themes file which, if the theme is updated could get overridden.

    Hi Mark,

    Thanks for your help so far. I had fiddled with the job-content file to get this to just output the job title. However i also need this to display the location
    e.g: Web Developer – London , Assistant – Manchester

    Here is the current contents of my /template-parts/content.php file what should i add to include the job location?

     * Template part for displaying posts
     * @link
     * @package WP_Bootstrap_Starter
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<div class="post-thumbnail">
    		<?php the_post_thumbnail(); ?>
    	<header class="entry-header">
    		if ( is_single() ) :
    			the_title( '<h1 class="entry-title">',  '</h1>' );
    		else :
    			the_title( '<h2 class="job-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
    		if ( 'post' === get_post_type() ) : ?>
    		<div class="entry-meta">
    			<?php wp_bootstrap_starter_posted_on(); ?>
    					</div><!-- .entry-meta -->
    		endif; ?>
    	</header><!-- .entry-header -->
    	<footer class="entry-footer">
    		<?php wp_bootstrap_starter_entry_footer(); ?>
    	</footer><!-- .entry-footer -->
    </article><!-- #post-## -->
    Plugin Author Mark Wilkinson


    You can output the location using the get_the_the_term_list() function.

    For example:

    get_the_term_list( $post->ID, 'wpbb_job_location', '', ',', '' );

    That would output:

    London, Manchester

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.