Hello,
you can add this to your functions.php
This will change your URL
=> https://website.com/all-ads/?rtcl_location=bogalusa&rtcl_category=licences-titles-tenders
TO =>https://website.com/all-ads/category/location
Or you can make more customization to change URL.
After doing this you need to regenerate your permalink.
use Rtcl\Helpers\Functions;
add_action('init', 'rtcl_url_rewrite');
function rtcl_url_rewrite(){
if ($id = Functions::get_page_id('listings')) {
$url = home_url();
$link = str_replace($url, '', get_permalink($id));
$link = trim($link, '/');
add_rewrite_rule("$link/([^/]+)/([^/]+)/?$", 'index.php?page_id=' . $id . '&rtcl_category=$matches[1]&rtcl_location=$matches[2]', 'top');
}
}
Thank you
Hello,
I made the changes but to no avail. The links are the same.
Thanks.
I get this error after I added the code ” There has been a critical error on this website.”
Hello,
Can you please give me the debug log,
Also by default, we have no option for this custom URL, you need to add more custom code for the filter widget form URL to change url.
Thank you
Hi, I’m sorry I didn’t enter the correct code. now everything is ok, but unfortunately nothing has changed in the link. could you make a video tutorial? it would help a lot of people to change this link. helps a lot for seo. thanks