mairav
Forum Replies Created
-
I already have we docs working with Polylang in english and spanish as second language.
Today I realized that if a search for a word in my spanish documentation, the results are redirected to the english result pag, giving a “Nothing found”, cause that word is in the spanish documentation. If I manually change to spanish, the results are shown. Is there a way to make it find the docs in the right language?- This reply was modified 7 years, 7 months ago by mairav.
Hi Tarek.
My site has this format:
http://www.site.com/docs
http://www.site.com/docs/documentation
http://www.site.com/docs/documentation/troubleshootingand I want it to be:
http://www.site.com/support
http://www.site.com/support/documentation
http://www.site.com/support/documentation/troubleshootingI’ve applied this in my functions.php
/** * Changing the <code>docs</code> slug to something else * * @param array $args * * @return array */ add_filter( 'wedocs_post_type', function($args) { $args['rewrite']['slug'] = 'support'; return $args; } );But:
In the breadcrumb, the old “Docs” part, still says “docs” and links to http://www.site.com/docs that is still working fine, but not like http://www.site.com/support as it should.
The page https://site.com/docs/documentation/ works, but it should be https://site.com/support/documentation/ which gives a 404 error.
http://www.site.com/support/documentation. The breadcrumb, in this case, shows the right link for “documentation”: http://www.site.com/support/documentation but I get the mentioned 404 error.The same is happening with children.
Any ideas?