Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Can you please check and save your permalink settings? The plugin requests the post/post type permalinks from WordPress via the get_permalink() function, so this means, that by default these are the product permalinks by configuration.

    If no luck, then you could theoretically use a custom code to remove them from the live results list via a custom code snippet:

    add_filter( 'asl_results', 'asl_custom_cpt_results', 10, 1 );
    function asl_custom_cpt_results( $results ) {
    
    	foreach ($results as $k=>&$r) {
    		if ( isset($r->post_type) ) {
    			$r->link = str_replace('product-category/product-category', 'product-category', $r->link);
    		}
    	}
    
    	return $results;
    }

    However I still recommend finding the source issue with the permalinks, because this may come up somewhere else as well.

    All the best,
    Ernest

Viewing 1 replies (of 1 total)
  • The topic ‘Bug multiligual Slug’ is closed to new replies.