5 months, 3 weeks ago #1081923
we would like to adapt our URL structure as follows:1. The job category URL should work like this:If there is parent & sub category the job URL would look like this: http://our-domain.ch/jobs/parent-category/sub-category/job-name/If a job has only a parent category the job URL would look like this: http://our-domain.ch/jobs/parent-category/job-name/Our developer tried to implement this and was successful if it comes to the part /parent-category/sub-category/, but said there is a slug /noo_job/ that he can not amend. Please see the screenshots, where they tried to adapt the slug. I am wondering: is this the right place to change it (as the slug noo_job did not appear before in any URLs). And can you advice, if the URL structure above is possible to set up and how to achieve it?Here are some screenshots where our developer tried to amend the slug.5 months, 3 weeks ago #1081954
Instead of customizing directly into the code, you can try with this plugin:
tb.5 months, 3 weeks ago #1081957
Thanks will try that. But are you saying, customizing directly into the code is not possible with jobmonster?
If possible we would like to avoid using too many plugins...5 months, 3 weeks ago #1082027
Of course you can customize the code.5 months, 3 weeks ago #1082041This reply has been marked as private.5 months, 3 weeks ago #1082050
If you do not override the slug for the Job archive page, it will default to "noo_job".
It looks like you removed this line from the register_post_type function:
'rewrite' => apply_filters( 'jm_job_rewrite', $job_rewrite ),
Please check again.5 months, 2 weeks ago #1082120
Thank you very much, now it´s working.
One last question on this one: Does it work to set up this core theme file init.php in the Child theme in order to prevent our changes getting lost after every theme update?5 months, 2 weeks ago #1082132
There are 2 ways you can do it
1, Override the "jm_register_job_post_type" function: you can copy it to the functions.php file of Child Theme.
2, Override init.php file: you can refer to this article.
You must be logged in and have valid license to reply to this topic.