Title: [Plugin: Weekly Class Schedule] Today Classes view
Last modified: August 20, 2016

---

# [Plugin: Weekly Class Schedule] Today Classes view

 *  [FranZeta](https://wordpress.org/support/users/franzeta/)
 * (@franzeta)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-today-classes-view/)
 * Hi,
    I’m using this plugin for one University and I need create a “Today view”,
   when calendar show the classes of today separated for classroms. I tried with
   this code but not working:
 *     ```
       <?php
       require_once WCS_PLUGIN_DIR . '/models/WcsSchedule.php';
       require_once WCS_PLUGIN_DIR . '/models/WcsClassroom.php';
       $classrooms = WcsClassroom::model()->getAllRecords();
       $value = "all";
       ?>
       <table class="wcs-schedule">
       	<tr>
       		<th></th>
   
       		<th><?php echo "1.0.A01"; ?></th>
       		<th><?php echo "1.0.A02"; ?></th>
       		<th><?php echo "1.0.H02"; ?></th>
       		<th><?php echo "4.0.F16"; ?></th>
       		<th><?php echo "4.0.F18"; ?></th>
   
       	</tr>
       	<?php foreach ( $start_hours as $start_hour ): ?>
       		<tr>
       			<th class="wcs-hour-title"><?php echo $start_hour; ?></th>
       			<?php foreach ( $classrooms as $value ): ?>
       			<?php echo WcsSchedule::model()->renderClassTd( $classes, $start_hour, $value ) ?>
       			<?php endforeach; ?>
       		</tr>
       	<?php endforeach; ?>
       </table>
       ```
   
 * ¿Can I help mee?
 * [http://wordpress.org/extend/plugins/weekly-class-schedule/](http://wordpress.org/extend/plugins/weekly-class-schedule/)
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your code may now have been permanently damaged/
   corrupted by the forum’s parser.]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [FranZeta](https://wordpress.org/support/users/franzeta/)
 * (@franzeta)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-today-classes-view/#post-3101494)
 * I advanced with the metod to implement a today view but I need access to classroom_id
   variable in the schedule and I don´t have any metod to it.
 * Any idea?
 *  Thread Starter [FranZeta](https://wordpress.org/support/users/franzeta/)
 * (@franzeta)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-today-classes-view/#post-3101506)
 * Finaly, I´m sucedeed create the Today Classes View alone. Moderators can close
   this post.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Weekly Class Schedule] Today Classes view’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/weekly-class-schedule_e7e1ae.svg)
 * [Weekly Class Schedule](https://wordpress.org/plugins/weekly-class-schedule/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weekly-class-schedule/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weekly-class-schedule/)
 * [Active Topics](https://wordpress.org/support/plugin/weekly-class-schedule/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weekly-class-schedule/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weekly-class-schedule/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [FranZeta](https://wordpress.org/support/users/franzeta/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-today-classes-view/#post-3101506)
 * Status: not resolved