WordPress.org

Ready to get started?Download WordPress

Forums

Job Manager
Display Custom Field on Applications List in WP Admin (4 posts)

  1. luminancedesign
    Member
    Posted 2 years ago #

    In WordPress's Admin, on the 'Job Manager > Settings > Job Form Settings' you can add a custom field and have it displayed on the 'Job Manager > Jobs List'.

    Does anyone know the code to add to the 'admin-applications.php' plugin file to add a custom field from the Job Form Settings e.g. 'job_field6' so it will display on the title of an Application as shown under 'Job Manager > Applications'?

    Reason being my client has several jobs of the same title, but different locations and a custom field with a reference code would be massively helpful to them - I just can't figure out what code returns the custom fields in the 'admin-applications.php' template.

    Any help is appreciated.

  2. luminancedesign
    Member
    Posted 2 years ago #

    Above query now unrequired.

    New issue, checkboxes on the 'Job Manager > Settings > Job Form Settings' are not saving when updated - any ideas why this is? I have 3 sites set up the same, one works fine, the other two are having none of it!

    Any suggestions or resolutions appreciated.

  3. Bukajec
    Member
    Posted 2 years ago #

    Could you write down how did you manage to resolve the first issue?

  4. luminancedesign
    Member
    Posted 2 years ago #

    Hi There,

    I just tweaked line 420 of admin-applications.php from:

    $parentstr[] = "<a href='?page=jobman-list-jobs&jobman-jobid=$data->ID'>$data->ID - $data->post_title</a>";

    to read:

    $parentstr[] = "<a href='?page=jobman-list-jobs&jobman-jobid=$data->ID'>Ref: $data->job_field6 - $data->post_title</a> [Post ID: $data->ID]";

    This [ Ref: $data->job_field6 ] just adds the output of the field required - in my case it was ID number 6, with a prefix of 'Ref' for reference.

    Hope this helps!

    P.S. As for my second query, I ended up manually changing a value in the DB.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic