Query – List Categories in Translated Language
-
Hello,
How to list posts in translated category? I only can list the posts in main category (main language).
Ex.: WP_Query( ‘cat=2&posts_per_page=5’ )
The posts listeds is from main language category, when I change the site language, the posts changes its links to selected language, but the slug for category continues in main language (english).
I use the following permalink structure for posts: /%category%/%postname%/
Example:
/english-category/post-in-english
After change the language:
/english-category/post-em-portugues
The main category and translated category has the same ID, I’ve tried category_name (slug in translated language), but no success.
Thanks for help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Query – List Categories in Translated Language’ is closed to new replies.