which direct-links have we to add to each button, when we want one button been linked to all listed offline-courses and one button is linked to a list to all of online-courses?
This reply has been marked as private.
Well no right now there is no such pages or blocks available .But we can filter this on all courses page with the help of custom code .
link to the button would be : http://site.com/all-courses/?filter=online
Courses will be filtered with online and offline on all courses page .
You can set the links to the buttons then .
if interested then please tell us ,we will share a code tip to you .
This reply has been marked as private.
okay thanks for this . I will develop a script for this .Provide me some time for this .
This reply has been marked as private.
please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
add_Action('wp_footer',function (){
if (!function_exists('bp_is_directory'))
return;
if(bp_is_directory && isset($_GET['filters'])){
?>
<script type="text/javascript">
jQuery(window).load(function(){
jQuery('input#<?php echo $_GET['filters'] ?>').prop('checked',true);
jQuery('input#<?php echo $_GET['filters'] ?>').trigger('change');
jQuery('a#submit_filters').trigger('click');
});
</script>
<?php
}
});
link to online : http://site.com/all-courses/?filters=online
link to offline : http://site.com/all-courses/?filters=offline
This reply has been marked as private.