NooTheme Premium WordPress Theme › Forums › JobMonster › Where to change Slug /noo_jobs/
- This topic has 7 replies, 2 voices, and was last updated 4 years, 11 months ago by tinhbeng.
-
AuthorPosts
-
4 years, 11 months ago #1081923
Hi,
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.http://prntscr.com/q4uxz3 , http://prntscr.com/q4uw2j , http://prntscr.com/q4uwwl , http://prntscr.com/q4uxe0 , http://prntscr.com/q4uygo
{screenshot , url)4 years, 11 months ago #1081954Hi,
Instead of customizing directly into the code, you can try with this plugin:
https://wordpress.org/plugins/custom-post-type-permalinks/
Best regards,
tb.
4 years, 11 months ago #1081957Thanks 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...
4 years, 11 months ago #1082027Of course you can customize the code.
4 years, 11 months ago #1082041This reply has been marked as private.4 years, 11 months ago #1082050Hi,
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.
4 years, 11 months ago #1082120Thank 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?4 years, 11 months ago #1082132Hi,
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.
Best regards,
tb.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.