Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
899 stars 368 forks source link

Page name vs job base conflict #2061

Closed toomanyairmiles closed 3 years ago

toomanyairmiles commented 4 years ago

I'm replicating an existing site with a URL structure that can't be altered without fear of damaging its traffic.

The issue is several pages are nested under site.com/job-seekers/page-name including the jobs list page which is site.com/job-seekers/current-vacancies and listings which live at site.com/job-seekers/current-vacancies/category/job-title. Settings the jobs base to job-seekers causes every page under site.com/job-seekers/page to 404.

Even if I attempt to circumvent the slug conflict using

add_action('init', function () {
     add_rewrite_rule('job-seekers/?$','index.php?pagename=job-seekers', 'top');
}, 1000);

It does not work. Is there a way to configure the jobs base and the page slugs to be the same without breaking the plugin?

Hastibe commented 4 years ago

I recommend also posting on the WordPress support forum for WP Job Manager for assistance.

alexsanford commented 3 years ago

Yes, this question is better suited for the support forum as mentioned. Alternatively, if you have purchased any of our premium extensions, please reach out to support through your wpjobmanager.com account.