The website I am working on has a large number of posts, which all have certain area codes. When a visitor uses the search engine they fill in their area code, which then outputs all posts that fall in the same area.
Is there a way to keep the visitors area code in the memory of the website, regardless of which page they visite afterwards, until they manually change their code in the search engine?
I store the code in a meta_data field with the advanced custom fields plugin, so basically I am looking for a way to add something like “&_sfm_areacode=12345” to every page after the visitor used the search form.