Hello,
Is there a way to hide the courses from the directory that are set to "Offline"? We would still require that it is visible in the gradebook, but it doesn't make sense to be in the directory as the course does not have any content.
Thanks,
Mike
Well you can hide them from wp-admin -> WPLMS -> course manager -> " Hide Courses from Directory
"
Hey Alex,
That does seem to be exactly what I'm looking for, but it doesn't seem to work.
Here's the setting: https://i.imgur.com/4UHmvXC.png
And here's the result: https://i.imgur.com/GgeDnS2.png
Am I doing something wrong? How can I fix this?
This reply has been marked as private.
Well it does shows in my courses section but does not shows in course directory .
It shows because user is actually enrolled in that course now and should be allowed to see it .
hiding it completly would need a custom code and we need to check it if its possible or not .
Yeah, we enroll the user because we want it it to appear in the gradebook. There are lots of courses that are taken offline, but still need to be graded and administered in one spot (wplms). It's just confusing to the user if it looks like you can take the course online (which you can't).
How about this:
Is it possible to add a course category in the loop?
I added a taxonomy to the courses: https://i.imgur.com/9x2mLlQ.png
I noticed that there is a class for the author ID: https://i.imgur.com/lRRcbAS.png
If I can get that category added as a class, I can hide it with CSS.
What do you think? Is this easy?
Thanks again for all your help. Our project is almost done and I won't have to bother you guys!
please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
add_filter('bp_course_single_item_view',function ($x){
global $post;
$offline = get_post_meta($post->ID,'vibe_course_offline',true);
if(bp_is_my_profile() && vibe_validate($offline) && bp_current_action() && bp_current_action() == 'course')
return 1;
return $x;
});
Looks like that did it. Thanks!
cheers ! If we can be of assistance, please do not hesitate to contact us again.
Closing this topic.
Best regards :)