wpml plugin front end edit course page fix

1. Fix by editing the file :
Goto wp-content/themes/wplms/create_content.php file.Jump to line number 464
Add the given line of code after line 464 after line “if(is_numeric($kid)){” :

1
2
if(function_exists('icl_object_id'))
       $kid = icl_object_id($kid, get_post_type($kid), true);

Fix form wp-admin :

a. Goto wp-admin -> Appearance -> Editor

b. Select Wplms theme to edit.
c. Find “create_content.php” file and click on it to edit.
d. Now find “if(is_numeric($kid))” using browser search :

e. Now add the given code after ” if(is_numeric($kid)){ ”

1
2
if(function_exists('icl_object_id'))
$kid = icl_object_id($kid, get_post_type($kid), true);