You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey carobe, in case you are using the "Language is set from content" setting in the "URL modifications" section of the Polylang Settings, try removing the %language%/ bit from line 151 of the /include/post-type.php file in the current plugin, i.e. instead of add_permastruct( $post_type.'_'.$lang, "%language%/{$args->rewrite['slug']}/%$post_type%", $permastruct_args );
make it add_permastruct( $post_type.'_'.$lang, "{$args->rewrite['slug']}/%$post_type%", $permastruct_args );
I added the filter in function.php, the slug is well translated but the page of translated slug is empty, can you help me?
The text was updated successfully, but these errors were encountered: