I'm having a similar situation, I want to change the url of the ot_service plugin. When I change 'rewrite' => array( 'slug' => __( 'services' , 'ot_service' ) )to 'rewrite' => array( 'slug' => __( 'products' , 'ot_service' ) ) I'm getting a 404 not found exception when trying to navigate to /products/my-product...
I need to customize some friendly url, for example:
/category_service/ ---> /espacios-realizados/
/portfolio/ --> /materiales-y-productos/
How I can make it?
thanks
Hello, open all plugins : OT Service and OT Portfolio and change text in plugin : ot_portfolio.php and find line code
'rewrite' => array('slug'=>'portfolio'),
'rewrite' => array( 'slug' => 'categories' ),
'rewrite' => array( 'slug' => 'tags' ),
Change by your text want use :
'rewrite' => array('slug'=>'your-text'),
'rewrite' => array( 'slug' => 'your-text' ),
'rewrite' => array( 'slug' => 'your-text' ),
Thank you
Hello,
All correct, the new slugs of the taxonomies work perfectly.
Many thanks
You are welcome!
Hi,
I'm having a similar situation, I want to change the url of the ot_service plugin. When I change 'rewrite' => array( 'slug' => __( 'services' , 'ot_service' ) ) to 'rewrite' => array( 'slug' => __( 'products' , 'ot_service' ) ) I'm getting a 404 not found exception when trying to navigate to /products/my-product...
What am I doing wrong?
Thx in advance
Hi,
You need to go to : back-end --> Setting --> permalink --> Save!