Skip to content

Instantly share code, notes, and snippets.

@dgershman
Created February 21, 2016 16:40
Show Gist options
  • Select an option

  • Save dgershman/6d496ebfa015bf791a70 to your computer and use it in GitHub Desktop.

Select an option

Save dgershman/6d496ebfa015bf791a70 to your computer and use it in GitHub Desktop.
<div id="content">
<?php
$day = pods('day', array( 'orderby' => 'dayoftheweek ASC' ));
while ($day->fetch())
{
?>
<a name="<?php echo $day->display('name'); ?>"></a>
<div style="font-size: 24px; margin-bottom: 20px; clear: left; text-decoration: underline;">
<?php echo $day->display('name'); ?>
</div>
<?php
echo pods('meeting')->find( array( 'where' => 'day.id = "'.$day->display('id').'" and hidden = "No"', 'orderby' => 'time ASC' ) )->template( 'Meetings' );
}
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment