Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Unable to get candiate photo to appear for Resume Manager WordPress

Hi super coders!

1. Page in question: http://fitram.com/test/

2. Using this plugin to generate listing page: http://codecanyon.net/item/taxonomy-metadata-searching-plugin-angular-js/8916111

3. Using this plugin for resumes: https://wpjobmanager.com/add-ons/resume-manager/

4. I think the isolated code in question is this:


foreach($query as $key=>$post){
$data = array();
$data['post_title'] = $post->post_title;
$data['post_content'] = $post->post_content;
$data['post_permalink'] = get_the_permalink($post->ID);
$data['post_date'] = $post->post_date;
$data['comment_count'] = intval( $post->comment_count );
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large');
if($large_image_url) {
$data['post_thumbnail'] = $large_image_url[0];
} else {
$data['post_thumbnail'] = 'http://placehold.it/400x400';
}


5. For the Resume Manager, the correct template tag is "the_candidate_photo".
Uses get_the_candidate_photo to output the candidates photo (or a placeholder).
c.f. https://wpjobmanager.com/document/resume-manager-template-tags/

How do i get the page to display the candidates' photos????

Thanks!
Wee

Answers (1)

2015-04-17

Arnav Joy answers:

you can change this line

$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large');

to

$large_image_url = get_the_candidate_photo( );


firefish comments:

Tried. But it doesn't work.


firefish comments:

does this help? this is from resume manager:
/**
* Get the photo for the resume/candidate
*
* @param WP_Post|int $post (default: null)
* @return string
*/
function get_the_candidate_photo( $post = null ) {
$post = get_post( $post );
if ( $post->post_type !== 'resume' )
return;

return apply_filters( 'the_candidate_photo', $post->_candidate_photo, $post );
}