Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slug translated but page empty #32

Open
carobe opened this issue Nov 30, 2015 · 2 comments
Open

Slug translated but page empty #32

carobe opened this issue Nov 30, 2015 · 2 comments

Comments

@carobe
Copy link

carobe commented Nov 30, 2015

I added the filter in function.php, the slug is well translated but the page of translated slug is empty, can you help me?

@satoristudio
Copy link

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 );

This was referenced Mar 13, 2016
@feliperarau
Copy link

Try to refresh your permalinks settings. Worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants