Hi,
I use a course tag in this post:
https://wplms.io/support/forums/topic/tags-in-courses/
This reply has been marked as private.
MkModerator
Ok, give us some time. we will provide you code.
MkModerator
Note: You need to add Tags in course.
Refer :
http://prntscr.com/n2nhtg
This reply has been marked as private.
MkModerator
Go to wp-admin -> plugins -> editor-> wplms-customizer plugin->
and add following code below in wplms-customizer.php :
add_filter('wplms_sidebar',function($sidebar){
if(is_tax('course-tag')){
return 'blog';
}
return $sidebar;
});
Note: The name of sidebar is sensitive, so if its not working please check your custom side bar name. and replace sidebar name with 'blog' ( return 'blog').
This reply has been marked as private.
MkModerator
Add this code in wplms-customizer.php
add_filter('wplms_sidebar',function($sidebar){
$post = get_post_type( get_the_ID() );
if($post == 'learningpath') {
return 'blog';
}
return $sidebar;
});
This reply has been marked as private.
MkModerator
Tag issue :
Remove Old code given in gist :
https://gist.github.com/99manish/c619b2c47c27991a95eba90f762f67b9
and add this code:
https://gist.github.com/99manish/83bd70fcc10876bf802a6ffdd79ac0c9
Warning issue :
Please ignore this warning as it will not affect any functionality.
This reply has been marked as private.
MkModerator
Ohh yes,
Please set duration for curriculums. It will fix your issue.
MkModerator
This reply has been marked as private.