Reply To: Add new permalink to map POI infowindow

Home Forums MapPress Support Add new permalink to map POI infowindow Reply To: Add new permalink to map POI infowindow

#15553
Chris
Keymaster

Hi,

It’s a quirk of WordPress: functions with the_ at the front require you to call setup_postdata() first to set up some global variables.

I think the easiest thing for your template is to call get_permalink() instead. It doesn’t require that extra step, and you can call it with the postid.