I am building a listing website (using ListingPro theme)
Inside the Listing Archive page I added some advertising widgets and I need to add conditions to it so that different content is displayed according to the location.
For example, the user chooses location A, the widget displays ads for A. The user chooses location B, displays for B, and so on.
I tried using the Widget options plugin but I don’t know how to set the logic condition here:
Using the conditional tags from here: https://codex.wordpress.org/Conditional_Tags
This is the website I’m working on: www.guiamercados.com
It has a search engine where you can choose a category and a location and then it shows a list of listings.
For example, if I search for the city of "Buenos Aires" it shows me the following link: https://guiamercados.com/?select=&lp_s_loc=1203&lp_s_tag=&lp_s_cat=&s=home&post_type=listing
As you can see from the link Buenos Aires has the ID 1203. How could I set the logic condition inside the widget so that it shows according to the ID of the location you are looking for?
Any ideas? Thanks in advance!