?> </th> <?php } ?> </tr> </tfoot> <tbody> <?php /*$args['post_type'] = 'notice'; $args['posts_per_page'] = -1; $args['post_status'] = 'public'; $q = new WP_Query(); $noticedata = $q->query( $args );*/ $noticedata = $obj_notice->get_notice($obj_gym->role); if (!empty($noticedata)) { foreach ($noticedata as $retrieved_data) { ?> <tr><?php if ($obj_gym->role == 'staff_member' || $obj_gym->role == 'accountant') { ?> <td class="noticetitle"><a href="?dashboard=user&page=notice&tab=addnotice&action=edit¬ice_id=<?php echo $retrieved_data->id; ?> "><?php echo $retrieved_data->post_title; ?> </a></td> <?php } else {