Depending on where your code it, it may be getting the author of the page you’re on, What code are you using?
Another question Mike, how can i add a costum field with a dorpdown ??
Hey!
Do you want to add a custom field to the Application form dropdown or the Submit Job form?
For the application form, here’s an example of adding a telephone field – https://wpjobmanager.com/document/applications-adding-telephone-field/ – you could easily change the field type to be select (dropdown) though, and add a new options field like so:
$fields[ 'tel' ] = array(
'label' => 'My Dropdown',
'type' => 'select',
'options' => array(
'option1' => 'Option 1',
'option2' => 'Option 2',
'option3' => 'Option 3',
),
'required' => true,
'priority' => 2,
'value' => isset( $_POST['tel'] ) ? sanitize_text_field( $_POST['tel'] ) : ''
);
More on editing Application fields here – https://wpjobmanager.com/document/applications-customising-application-form-fields/
Similarly you can do the same for the submit job fields – https://wpjobmanager.com/document/editing-job-submission-fields/
Here’s a detailed tutorial adding a text field to the submit job form – https://wpjobmanager.com/document/tutorial-adding-a-salary-field-for-jobs/
I hope this helps you out! 🙂
Bryceadams Hi thanks for your help , I ask you a question like I can do to put a line of php in Option 1
What kind of PHP?
You could do:
'option1' => admin_url(),
For example.
Thanks for all help bryceadams and Mike.