'<a href="#" class="point-camera point-camera-'.$style.'"><span class="img-point-camera"><img src="'.$img.'" alt="#"></span><span class="temp_city"><img src="'.$temp.'"><p>22°C</p></span><br>'.$post_name.'</a>' You need to pull out the last word $post_name
I try the following way:
... $(this).last().text(); Displays: 22 ° CTEXT