Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter lawrenceseo

    (@lawrenceseo)

    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?

    
    <?php
    /**
     * Template part for displaying posts
     *
     * @link https://codex.www.ads-software.com/Template_Hierarchy
     *
     * @package WP_Bootstrap_Starter
     */
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<div class="post-thumbnail">
    		<?php the_post_thumbnail(); ?>
    	</div>
    	<header class="entry-header">
    		<?php
    		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>' );
    					
    		endif;
    
    		if ( 'post' === get_post_type() ) : ?>
    		<div class="entry-meta">
    			<?php wp_bootstrap_starter_posted_on(); ?>
    					</div><!-- .entry-meta -->
    	
    		<?php
    		endif; ?>
    	</header><!-- .entry-header -->
    	
    	<footer class="entry-footer">
    		<?php wp_bootstrap_starter_entry_footer(); ?>
    	</footer><!-- .entry-footer -->
    </article><!-- #post-## -->
    
    
Viewing 1 replies (of 1 total)