最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

custom post types - Polylang non-default language ignores tags in WP_Query

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论