}
    $qm_course['department'] = $department->post_title;
    $instructor = get_field('instructor');
    $qm_course['instructor'] = $instructor;
    $currentposts[] = $qm_course;
}
?>
    <?php 
if (have_posts()) {
    ?>
    <header class="page-header">
      <h1 class="page-title">Quality Matters Courses</h1>
    </header>
    <?php 
    /* Start the Loop */
    $myListTable = new My_List_Table($screen = "qmcourse");
    echo '<div class="wrap"><h2>My List Table Test</h2>';
    $myListTable->setData($currentposts);
    if (isset($_POST['s'])) {
        $myListTable->prepare_items($_POST['s']);
        print_r("POSTSS ");
    } else {
        $myListTable->prepare_items();
    }
    $myListTable->display();
    ?>
<form method="post">
    <input type="hidden" name="page" value="<?php 
    echo $_REQUEST['page'];
    ?>
" />
 public function display_cart_table()
 {
     $woo_cart = new My_List_Table();
     $woo_cart->prepare_items();
     $woo_cart->display();
 }