我试图翻译这个
$loop = new WP_Query(array(
'post_type' => 'YOUR_CUSTOM_TYPE_SLUG',
'lang' => 'en', // use language slug in the query
// 'lang' => '', // query posts in all languages
'paged' => get_query_var('paged'),
'posts_per_page' => 10,
'post_status' => 'publish',
));
进入自定义选择查询。我试过了
SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->posts, meta_value as meta_value_pl WHERE ($wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'YOUR_CUSTOM_TYPE_SLUG')
但没有运气。有人可以帮忙吗?谢谢!