This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Post Tables Pro

#48967
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

I used google translate to understand your question, I hope I get it right.

It is actually possible to remove parts of the URL via a custom code, but it shouldn’t be too difficult.

add_filter(
	'asp_results',
	function ( $results ) {
		foreach ( $results as $r ) {
			$r->link = str_replace('/mesure-risque/', '/', $r->link);
		}
		return $results;
	},
	10,
	1
);

Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.