Skip to content

Instantly share code, notes, and snippets.

@jclapp23
Created July 25, 2013 13:43
Show Gist options
  • Save jclapp23/6079757 to your computer and use it in GitHub Desktop.
Save jclapp23/6079757 to your computer and use it in GitHub Desktop.
WP_Cal_Demo #6
<?php
$calendar_output .= '<td>';
if ( in_array($day, $daywithpost) ){
$title_div = "<div>";
foreach($ak_titles_for_day[$day] as $ak_title){
$title_div .= "<a href='".$ak_title['url']."' title='".$ak_title['title']."'>".$ak_title['title']."</a><br/>";
}
$title_div .= "</div>";
$calendar_output .= "<span>$day</span>".$title_div;
}
else{
$calendar_output .= $day;
}
$calendar_output .= '</td>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment