• Is there a way of including the job description, salary and location in the latest posts widget? I have amended the widgets.php to style the widget but would love to include these fields also.

    BTW Fantastic plugin and support to users!

    Cheers

    Alan

Viewing 1 replies (of 1 total)
  • I’m trying to achieve the same thing, wanting to add at least the job location and category to the widget.

    So far i managed to display the category this way (don’t know php, so it probably looks crappy but it makes me proud).
    In widgets.php:

    if( count( $jobs ) > 0 ) {
    	echo '<ul>';
    	$jobcount = 0;
    	foreach( $jobs as $job ) {
    		if( $jobcount >= $instance['jobslimit'] )
    			break;
    		echo '
    		<li><span>' . $job->post_title . '</span><br>';
    
    #my part starts here:
    
    		$categories = wp_get_object_terms( $job->ID, 'jobman_category' );
    		foreach( $categories as $cat ) {
    			echo "Categorie: $cat->name";
    		}
    		echo '
    			<br>
    			</li>
    			<div class="button"><a href="' . get_page_link( $job->ID ) . '"></a></div> 
    
    		';
    
    		$jobcount++;
    	}
    	echo '</ul>';
    }

    Don’t know if this helps you.

    Now I still need to add the location, but I haven’t figured that out yet.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Job Manager] Latest Posts Widget Amendments’ is closed to new replies.