Feature Request – With Front setting
-
Hello, as far as I can tell, there is currently no way in the plugin’s settings page to indicate false for the
with_frontsetting in theregister_post_typefunction that creates theawsm_job_openingspost type. I had to do the following:/** * Customize 'awsm_job_openings' post type arguments. * * @param array $args arguments. * @return array */ function awsm_job_openings_args( $args ) { $args['rewrite'] = array( 'slug' => 'career', 'with_front' => false, ); return $args; } add_filter( 'awsm_job_openings_args', 'awsm_job_openings_args', 100 );It would be convenient to have an option in the settings page to handle this for sites that have a custom front set in their permalinks settings. In my particular example, the site’s custom permalink structure is
/news/%postname%/, so without the above code, the single job url would be “news/jobs/job_name“.
The topic ‘Feature Request – With Front setting’ is closed to new replies.