admin管理员组文章数量:1336075
I have a mutual DB of custom posts that I'd like different languages to be able to access. If I loop through the post type only, all posts show in all languages, but once I add a tag to the query it only shows on default language page.
The below is displayed with no problems across all pages
$the_query = new WP_Query( array('post_type' => 'cars' , 'posts_per_page' => 6) );
And this query with tag only shows in default language:
$the_query = new WP_Query( array('post_type' => 'cars' , 'tag' => 'recommended', 'posts_per_page' => 6) );
Does anyone know what the problem might be?
本文标签: custom post typesPolylang nondefault language ignores tags in WPQuery
版权声明:本文标题:custom post types - Polylang non-default language ignores tags in WP_Query 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742236455a2438170.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论