critester
Forum Replies Created
-
Problem solved.
I went to to /wp-content/plugins/greenhouse-job-board/public/js/greenhouse-job-board-public.js
and set the values of the metadata like this:
display_custom_field1 = json.jobs[i].metadata[0].value;
display_custom_field2 = json.jobs[i].metadata[1].value;
display_custom_field3 = json.jobs[i].metadata[2].value;
display_custom_field4 = json.jobs[i].metadata[3].value.unit + ‘ ‘ +json.jobs[i].metadata[3].value.amount;
etc…After, I have called the values in greenhouse-job-board-public.php to display the job custom fields.
I hope this information can be valuable for the public.
Kind regards
Good Afternoon BrownBagMarketing!
Thanks for your answer, actually, what we’re looking for, is to display the custom metadata information as a part of the job description.
Should I create the filter in functions.php?
how should I call it in class-greenhouse-job-board-public.php?Thanks in advance!
{
“absolute_url”: “x”,
“internal_job_id”: y,
“location”: {“name”: “z”},
“metadata“: [{
“id”: -,
“name”: “This info 1“,
“value”: “This info 1“,
“value_type”: “-”
}, {
“id”: -,
“name”: “This info 2“,
“value”: “This info 2“,
“value_type”: “-”
}, {
“id”: -,
“name”: “This info 3“,
“value”: “This info 3“,
“value_type”: “-”
}, {
etc…
}, {
…