Home › Forums › MapPress Support › Show Dates in POI List › Reply To: Show Dates in POI List
July 29, 2012 at 9:34 am
#10073
There’s a bug in my little code snippet – I wrote $postid instead of $poi->postid, so it always prints the first date. I didn’t realize the dates were repeating when I tried it.
It should be as shown below. I tested it and it looked OK. Hopefully it’ll work for you as well:
<td> <?php if ($poi->postid) { $p = get_post($poi->postid); echo $p->post_date; } ?> </td>