Reply To: Show Dates in POI List

Home Forums MapPress Support Show Dates in POI List Reply To: Show Dates in POI List

#10073
Chris
Keymaster

    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>