This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by gustavoD-4 3 months ago.

Assigned support staff: Lauren.

Author Posts
July 16, 2019 at 5:11 pm #4222615

gustavoD-4

Hi,

I have a template that is not compatible with WPML and the courses have a widget to show in the home page, but it's showing all languages.

I want to change and show the courses for each language.

The website is hidden link and the problem is on the "Choisissez votre cours" section.

July 16, 2019 at 6:05 pm #4223095

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I have escalated this to our Compatibility team. I will be working with the developers to find a resolution and will keep you updated here. Thanks for your patience while we continue to troubleshoot.

July 17, 2019 at 3:25 pm #4231755

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Our developers have taken a look and found the following workaround:

in wp-content/plugins/learnpress/inc/curds/class-lp-course-curd.php 952 replace lines 962-974 with:

$query = get_posts (array(
    'post_type' => LP_COURSE_CPT, 
    'numberposts' => $limit, 
    'post_status' => 'publish', 
    'order_by' => 'date',
    'order' => $order, 
    'suppress_filters' => false, 
    'fields' => 'ids'));

return $query;

Please let me know if this resolves the issue for you. Thanks!

July 18, 2019 at 9:25 am #4236567

gustavoD-4

My issue is resolved now. Thank you!