I’m trying my search filter url looking good
-
I’m trying to add custom search url for my searhc filter url looking good . I”m add custom_rewrite_rule function but this is not working https://locummeds.co.uk/jobs/?job_category=nurses&job_location=london&job_type=full-time this is my current search filter url
but i’m trying to add this one https://locummeds.co.uk/jobs/job-category/nurses/job-location/london/job-type/full-time
i’m use this function for do this
function custom_rewrite_rule() {
add_rewrite_rule(‘^jobs/job-category/([^/]*)/job-location/([^/]*)/job-type/([^/]*)/?’,’index.php?post_type=job_listing&job_category=$matches[1]&job_location=$matches[2]&job_type=$matches[3]’,’top’);
}
add_action(‘init’, ‘custom_rewrite_rule’, 10, 0);
but i can’t see any changes on my .htaccess file after setup this code thats why i manually add this code on .htaccess file RewriteRule ^jobs/job-category/([^/])/job-location/([^/])/job-type/([^/]*)/?$ /index.php?post_type=job_listing&job_category=$1&job_location=$2&job_type=$3 [L]
i’m flush after setup code but still not working please help me this is emergency
The blog I need help with is: (visible only to logged in users)
-
Hi there!
Apologies, but we can’t help with your issue directly because we don’t host your site on our WordPress.com managed hosting.
To explain, we are a fully managed hosting provider and use a custom server environment that is optimized for WordPress, provides built-in security and performance improvements, as well as in-house support for your site questions.
Because of the way we’ve optimized our service, we also use a customized version of WordPress that is different (under the hood) from what you use at locummeds.co.uk. As a result, we do not have access to your site and are not familiar with the source of your issue.
The good news is that help is available here at the open-source WordPress forums: https://wordpress.org/support/forum/how-to-and-troubleshooting/
The folks in that forum are more familiar with these kinds of issues and are in the best position to help.
Thanks!
- The topic ‘I’m trying my search filter url looking good’ is closed to new replies.