• Resolved dex12345

    (@dex12345)


    Hi,
    I’m using the job manager plugin with contact form 7.
    I want that when a person wants to apply for the position, they can only select an option from a dropdown menu and submit.
    The options in the dropdown menu have to be the URL’s to the listings the person created because when it will be submitted, the employer will receive the link to click.

    Ex. If a person created 1 listing, the url of that listing will show as an option to select from the dropdown and to submit.

    add_filter( 'job_application_form_fields', function( $fields ) {
      if ( ! is_user_logged_in() ) {
    	return $fields;
      }
      
      $user_listing_url = get_current_user_listing_url();
      $fields['message']['value'] = get_user_meta( $user_listing_url, 'shared-application-message', true );
      
      return $fields;
    } );

    I have this code but it doesn’t work. Can someone please help me solve this. Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi,

    Unfortunately, I’m unable to help with this kind of custom code, sorry! I’ll leave this thread open in case someone else in the community is able to help.

    You will have to call get_posts (https://developer.www.ads-software.com/reference/functions/get_posts/) to get all posts for that specific job listing user’s ID, then use get_permalink to get the URL for each listing. And that’s just to get the URLs for the dropdown.

    This basically will require you to have a good bit of custom PHP code to do/handle, I suggest looking for a developer to handle this for you if you’re not familiar with writing PHP code.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autopopulate user’s listing field with url’ is closed to new replies.