Pods compatible with WPML? | WordPress.org

[ad_1]

Hi. Trying to implement a simple FAQ with Pods. Not using Pods templates at the moment so just a modified query to display the content via our theme.

All worked correctly till we started including content in different languages via our WPML plugin. For some unknown reason, we get mixed content! CPT in Spanish appear in English and vice versa. Only happening with the new Pods CPT for FAQ, post and pages have been working correctly with WPML for years.

Our only change in code is modifying the query which I understand should not affect:

<?php
$posts = get_posts([
‘post_type’ => ‘faq’,
‘post_status’ => ‘publish’,
‘numberposts’ => -1,
‘meta_key’ => ‘order’,
‘orderby’ => [‘meta_value_num’,’modified’],
‘order’ => ‘DESC’
]);
?>

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer