Add Custom Fields to The Frontend Job Submission Page of WP Job Manager

If you're using the WP Job Manager plugin for your job or any kind of listing site and looking for adding some custom fields on the front-end of the job submission page which is created using the [submit_job_form] default shortcode by WPJM then this post could be helpful for you.

  • Published on: April 15, 2020
  • Updated on: April 15, 2020

Wasim Akram

Blog Author

If you’re using the WP Job Manager plugin for your job or any kind of listing site and looking for adding some custom fields on the front-end of the job submission page which is created using the [submit_job_form] default shortcode by WPJM then this post could be helpful for you.

In this post, I am going to share with you a few custom-written PHP codes to add a custom text field to the job submission page of WP Job Manager.

You can add those codes within your functions.php file using your theme editor or you can use a plugin like Code Snippets, Scripts Organizer, or Advanced Scripts if you don’t want to mess with the backend codes of the funtions.php file.

Add A Custom Text Field

To add a custom text field on the job submission page you would need to add this code to your website and in this section, I’ll teach you how to customize the custom text field as per your requirement.

add_filter( 'submit_job_form_fields', 'frontend_add_Custom_Text_field' );
 function frontend_add_Custom_Text_field( $fields ) {
 $fields['company']['Custom_Text'] = array(
 'label' => __( 'Custom Text (Optional)', 'job_manager' ),
 'type' => 'text',
 'required' => false,
 'placeholder' => 'e.g. Add anything You Want',
 'priority' => 1,
 );
 return $fields;
 }

Step 1:

See carefully the very first line of the code where I have highlighted the text “Custom_Text” you just need to replace that thing with your own text, for example; add_filter( ‘submit_job_form_fields’, ‘frontend_add_Date_of_Birth_field’ );

Step 2:

Then you also need to replace the text from the second line of the code. As for example; function frontend_add_Date_of_Birth_field( $fields ) {

Step 3:

Then you need to change the same text on the third line of the code. As for example; $fields[‘company‘][‘ Date_of_Birth ‘] = array(

One thing to keep in mind, if you add the field on the job application section then you just need to replace the company word from the job word in this line that’s it. For example;
$fields[‘ job ‘][‘ Date_of_Birth ‘] = array(

Step 4:

Then on the fourth line also you need to replace the text from your own text as it’s a label and will be visible on the front page thus you also should mention if the field is Required or Optional within the bracket.

As for example; ‘label’ => __( ‘Date of Birth (Optional)’, ‘job_manager’ ),

Step 5:

Then the next thing is to leave the 5th line of the code as it is because we are creating a custom text field thus it would be as text.

As for example; ‘type’ => ‘text‘,

Step 6:

The 6th line should be left as it is if you want to keep this field optional but if you want to make this field required then you need to replace the word false with true.

As for example; ‘required’ => true,

Step 7:

The 7th line of the code is for a placeholder so you can add whatever you want to add on the placeholder, like in this placeholder you can indicate the format of date of birth.

As for example; ‘placeholder’ => ‘e.g. 01.01.1990‘,

Step 8:

Then in the 8th line of the code select the priority or the position of the field on the page, like as you want to keep it on the top or in the below that you can decide in this line.

Here you just need to replace the number with your own number, suppose you want to keep this field below after 9 other fields then you have to replace the 1 with 10 on this line of code.

As for example; ‘priority’ => 10,

Conclusion

Nothing more you have to do once you have followed and made exact changes as I taught in this article.

Leave the rest of the code as it is and don’t change any single thing from this code otherwise, nothing will work.

Once you have made the changes now you are ready to go, just add the code within your website using the functions.php or Code Snippets plugin and your custom text field is ready and live.

I hope I have been able to solve your problem regarding adding a custom text field on the job submission page of the WP job manager plugin.

If you face any difficulties to use this code then feel free to share your feedback in the comment box below or if you want me to add the custom fields for you then you can hire me for this job.

Thank you for visiting syncwin.com!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

Related Posts You’ll Love

Keep exploring and sharpen your WordPress skills with more expert guides, tips, and inspiration tailored just for you. Each post is carefully crafted to help you build faster, solve real-world challenges, and get the most from WP.

Explore More Posts
WPnomy - Default Featured Image

How to Auto-Adjust Hero Section Spacing for Sticky Headers in Bricks Builder?

Learn how to automatically adjust the top spacing of your hero section to prevent content from being hidden when the sticky header is activated in Bricks Builder. This quick guide…

Read Now
WPnomy - Default Featured Image

My Top Concerns About the Bricks Builder Ecosystem as a Committed Member

A quick look at what really holds the Bricks Builder ecosystem together, and where things could use some work. Whether you’re new or experienced, understanding this helps us all move…

Read Now
WPnomy - Default Featured Image

What is the Best Theme to Use with Bricks Builder?

Many people search for the perfect theme to pair with Bricks Builder, but the real answer might not be what you expect. The best fit could be hiding in plain…

Read Now
  • Connect. Learn. Build Together.

    Become part of the WPnomy family; a vibrant, supportive community where freelancers, designers, and agencies come together to share insights, ask questions, and celebrate wins. Here, you’ll find encouragement, real-world tips, and a network of passionate WordPress users ready to help you grow.

    Join Facebook Community
    • Connect with passionate WordPress users who share your goals and challenges.
    • Access practical tips, insider tricks, and real-world solutions tailored for all skill levels.
    • Share your progress, get feedback, and celebrate your wins with a supportive network.
    • Stay updated on the latest WordPress features, tutorials, and community events.
    • Experience friendly mentorship and no-fluff guidance, making web building easier and more fun.
    Black Friday Background Image

    🖤 Wait! Don’t Miss These Black Friday Deals!

    Before you go, grab these exclusive 2025 Black Friday Deals; huge savings on top WordPress themes, powerful plugins, and reliable hosting to level up your site. These offers vanish soon, claim your deal now!

    Unlock My Black Friday Deals