Hi I have a string replace:
$sHTML = str_replace( "[+fs.area.'{$member[ "town" ]}'+]", hello", $sHTML );
I have multiple towns in the database and i cannot go adding static short codes for each town as the user maybe adding towns later, i basically want to put into the html:
[+fs.area.townname+] which in this case will show hello am i doing something wrong or is there another way i can go about it?
This is not wordpress, i did some searching and found there was a way to do it in wordpress but thats not what i want.