WP Job Manager
[resolved] Resume Manager - Using template tags (3 posts)

  1. godavid33
    Posted 2 years ago #

    Hello again!

    I would like to set up my users profiles to display their resumes (obviously, if the current logged in user is allowed to view). How would I go about using the template tags? Particularly, I am curious about how they know which resume to grab information from.

    So for example, given the_candidate_title( $before = '', $after = '', $echo = true, $post = null ) would $post = the post title to know which resume? or the post ID? If either of the prior, then how do I know the posts IDs/titles for the resumes that user has submitted?


  2. godavid33
    Posted 2 years ago #

    Resolved with the following solution:

    $resumes = get_resumes( array("author"=>bp_displayed_user_id()) );
    foreach($resumes->posts as $resume):
    echo the_candidate_title( '','',false, $resume->ID ).'ID ).'">View';


    Just to reiterate, the following code gets all the resumes of the displayed user and echo the position title of the resume with a view link

  3. socialmonocle
    Posted 1 year ago #

    I attempted to use the code but it kept giving me a syntax error in the echo line. Did you have the same issue?

    I apologize, I'm new to php.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Job Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic