Show widget for specific location in a listing archive page
-
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.
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!
- The topic ‘Show widget for specific location in a listing archive page’ is closed to new replies.