• Resolved superbadshit

    (@superbadshit)


    Your plugin is using /jobs slug. so when a single job is viewed it appears like so: https://website.com/jobs/bricklayer/ all good. This is the case when under permalinks settings it is set to use the /%postname%/ slug.
    This was a problem for us because under the blog we needed to use /news/%postname%/ so we changed it to this custom structure: /news/%postname%/ and the website now displays the blog like so: https://website.com/news/%postname%/ which is what we need BUT your plugin inherits the /news/ bit and now each individual job is displayed under /news/jobs/bricklayer/ so on the website it looks: https://website.com/news/jobs/bricklayer/ which is obviously what it shouldn’t do.

    Can this be fixed so it doesn’t use the blog slug structure or inherit it when custom slug structure is used?

    • This topic was modified 5 years, 6 months ago by superbadshit.
Viewing 1 replies (of 1 total)
  • Plugin Support vidyakv

    (@vidyakv)

    Hi @superbadshit

    Thanks for reaching out to us.

    Currently, we don’t provide any UI to change this behavior. But, you can fix this by copying and pasting the below snippet of code in your theme’s functions.php file(we recommend child theme). After that, go to WordPress Settings > Permalinks and click Save Changes.

    function awsm_job_openings_args( $args ) {
    $args['rewrite']['with_front'] = false;
    return $args;
    }
    add_filter( 'awsm_job_openings_args', 'awsm_job_openings_args', 11 );

    Regards,
    Vidya K V

Viewing 1 replies (of 1 total)
  • The topic ‘slug bug’ is closed to new replies.