Tutorial: Changing the job slug/permalink

Job listings in WP Job Manager default to the permalink ‘jobs’. So, for example, a job may have the following URL: http://yoursite.com/jobs/job-listing-title

There are two methods of customising this;

  1. Using a localisation file and translating the string
  2. Using a filter

Important: After changing the slug, you need to resave your permalinks for it to come into effect. Go to your WordPress dashboard and find Settings > Permalinks. Hit save and you are done.

↑ Back to Top Changing the permalink base using filters

The filter method involves adding some custom code to your theme functions.php to filter the permalink. e.g. Change ‘jobs’ to ‘careers’:

↑ Back to Top Changing the permalink slug for new jobs

To make job permalinks unique, the slug has company name, location name, and job type (as a number) appended to it. e.g. job/acme-london-6-awesome-job (Note: these are only added when the job is posted via the submit job form on the frontend).

You can customise this via filters added to your theme functions.php file:

Omit or comment out the parts you don’t want to remove from your job permalinks.

↑ Back to Top Example: Appending the Job ID to the permalink slug

This code will append the job ID to the permalink slug when saving a new job listing. e.g. e.g. job/acme-london-6-awesome-job-136

Note: If you want to apply this to all existing job listings, you’ll need to bulk edit them and click update, to trigger the “save_post” action.

↑ Back to Top Example: Adding the Job ID to the base URL

This snippet would add the Job’s ID to the base url. E.g. /job/1234/job-title

↑ Back to Top Example: Adding the category to the base URL

This snippet would add the Job’s category name to the base url. E.g. /job/job-category/job-title

↑ Back to Top Example: Adding the category and region to the base URL

This snippet would add the category name and region name to the base url. E.g. /job/job-category/region/job-title
(Requires the Astoundify Predefined Regions plugin)