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_front
setting in theregister_post_type
function that creates theawsm_job_openings
post 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
“.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Feature Request – With Front setting’ is closed to new replies.