Listify – bbird.me http://bbird.me WordPress quick tips Wed, 08 Aug 2018 16:39:07 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 How to edit submission fields in Listify WordPress theme http://bbird.me/how-to-edit-submission-fields-in-listify-wordpress-theme/ http://bbird.me/how-to-edit-submission-fields-in-listify-wordpress-theme/#comments Thu, 30 Apr 2015 14:56:51 +0000 http://bbird.me/?p=118 If you want to edit submission fields on Listify WordPress theme (these are the fields that appear on Submit Listing page), all you

Post How to edit submission fields in Listify WordPress theme je prvi puta viđen na bbird.me.

]]>
If you want to edit submission fields on Listify WordPress theme (these are the fields that appear on Submit Listing page), all you need to to is to use filters. Filters are used for making changes on both frontend and backend.

For example, let’s change the “Title” to “Company Name”, and for another example, make Location required:

add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' );

function custom_submit_job_form_fields( $fields ) {

    $fields['job']['job_title']['label'] = "Company Name";
    $fields['job']['job_location']['required'] = true;
    return $fields;
}

You might ask now – where do I get the filter names? Since the theme is using WP Job Manager plugin, you can get filter names on the plugins’ GitHub page. In our example, we modified the following:

'job_title' => array(
					'label'       => __( 'Title', 'wp-job-manager' ),
					'type'        => 'text',
					'required'    => true,
					'placeholder' => '',
					'priority'    => 1
				),
				'job_location' => array(
					'label'       => __( 'Location', 'wp-job-manager' ),
					'description' => __( 'Leave this blank if the location is not important', 'wp-job-manager' ),
					'type'        => 'text',
					'required'    => false,
					'placeholder' => __( 'e.g. "London"', 'wp-job-manager' ),
					'priority'    => 2
				),

So all you have to do is to choose the array and modify any of its arguments.

Resources:

Editing Job Submission Fields

Post How to edit submission fields in Listify WordPress theme je prvi puta viđen na bbird.me.

]]>
http://bbird.me/how-to-edit-submission-fields-in-listify-wordpress-theme/feed/ 9