Home › Forums › MapPress Support › Add new permalink to map POI infowindow › Reply To: Add new permalink to map POI infowindow
January 22, 2015 at 6:53 am
#15553
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.