Hi!
I just want to say I would like to know the same.
In my case, for example, I would like to modify the list of employment types, as the organisation I work for has some unique employment types, and the list that is provided as standard, is not applicable, hence it needs to be overwritten. Preferably in the theme.
In the future, I also suggest, that the administrator of the website can choose which (of the standard) employment types to include and whether they want to add something completely new.
There may be some employment types that are unique to the organization or the industry.
Hi riddhitatvic,
as I had several editing tasks with the plugin too and solved them (exepted one issue), please write down in an answer to this, what exactly you try to do. Maybe I can help with a hotfix to give you more time to find a complete solution based on hooks and filters (I guess you’re looking for any tweaks placed in the functions.php to avoid update issues next).
I solved this (e.g.):
– Changing h5 tag on Joblisting (Hotfix)
– Missing translations for e.g. “Full-time” (Hotfix)
– Titles for detail texts in single job posting
Just in case you’d like to have a look:
Job listing and Single job posting sample (open here: I try to figure out how to implement the field “position_title” as h1 in the template (SEO-Basics-Stuff). If you have an idea, feel free to share it with me.
All the best,
Chris
Hi kathrynmpu,
this was sometghing I tried to solve too and found a solution which works just fine for me.
What you’re looking for is based in this file:
../wp-content/plugins/job-postings/class-job-postings.php
Start by making your changes update secure with the following option:
In your (child)theme’s folder, make a folder “jobs”.
Inside that folder, copy the class-job-postings.php from the plugin.
Wordpress will then use the class-job-postings.php from there and you can safely edit this file. (inspired by: https://ww.wp.xz.cn/support/topic/changing-single-job-template/ – thanks to Robert89)
Editing that file
In line 128 the standard employment types begin. copy and paste the last entry beneath and change the content that is in between this ” (the first part in ().
Example
Find and copy this complete line:
"OTHER" => __('others', 'job-postings'),
AND paste it in a new line under the standard types.
Now change it from this:
"OTHER" => __('others', 'job-postings'),
to this:
"SPECIAL" => __('specialtypethatsuitsyourneeds', 'job-postings'),
… I changed “SPECIAL” AND ‘specialtypethatsuitsyourneeds’.
This leads to a new selection in the backend when editing or inserting a single job.
Hopefully this helps you.
All the best,
Chris
-
This reply was modified 4 years, 8 months ago by
chrisaudio. Reason: formatting and semantic corrections (I'm from Germany and no n ative english speaker)
-
This reply was modified 4 years, 8 months ago by
chrisaudio.
-
This reply was modified 4 years, 8 months ago by
chrisaudio.
-
This reply was modified 4 years, 8 months ago by
chrisaudio.
-
This reply was modified 4 years, 8 months ago by
chrisaudio. Reason: added a solution to stay update secure
Hi Chris,
Unfortunately I could not get this to work for me. I suspect that the template customization might only be used for the front end of the website, but, not to edit the fields, etc. in the administrator editor.