Two pages with two different objects groups
-
Hello,
I need to make two different pages for two different stores and their locations. Is it possible?
-
Hi!
I guess you mean two different URLs in the same domain (i.e., mydomain.com/brand1, mydomain.com/brand2, with brand1 and brand2 being different subsets of stores that are not supposed to appear together in the same map).
The easiest way to accomplish this is to assign categories to your stores in your backend, so when you want to display the store locator you pick just one (or multiple) category(ies) and the map shows just that.
For instance, suppose you have categorized your stores with the categories “brand1” and “brand2”. Then all you have to do in mydomain.com/brand1 is to show the map with:
[wpsl category=”brand1″]
And consequently, you show the map in the mydomain.com/brand2 URL with the shortcode
[wpsl category=”brand2″]
You can find more info in our documentation.
I hope this helps 🙂
That is exactly what I mean! Thanks a lot!!! Have a great day!!!
Hello again,
Seems that I can’t achieve this. I created categories and then added my locations to them. But the categories seem empty. I mean when I enable categories filter on search, when do search by category it says “No result found” What am I doing wrong? Here is a link: https://colourmonk.com/test/test/Hi again.
There seems to be an issue with your Google Maps API keys, see screenshot.
This can lead to inconsistent results when searching, and it probably has to do with your issue.
It seems some of the features of the google APIs haven’t been enabled in your project. So please check this article in our documentation and manually enable the required APIs.
If you have already created a project for your website in the Google Developers Console, then make sure to enable the following Google Maps APIs.
JavaScript API
Geocoding API
Directions API
Distance Matrix API
Elevation API
Places API
Static Maps APIThis should solve your issues once all the APIs have been enabled, so please try and get back to us if the map is still not working as it should after doing this 🙂
Thank you! I’ll try this.
Still the same. I’ve enabled all of the APIs, with no errors in the developers’ console. https://colourmonk.com/the-temples/ The Last location is in a different category “weather_stations”. I use [wpsl category id =”weather_stations”] shortcode on that page. But it still shows all of the locations, no matter what category I put in the shortcode.
Thanks!Hi again!
Actually the right way to call the shortcode with the category parameter is, as explained in the documentation:
[wpsl category=”weather_stations”]
instead of:
[wpsl category id =”weather_stations”]So please check the syntax, I hope that solves your issue!
Regards,OMG, sorry!!! I can’t believe it! I have no idea from where I’ve got it! Thanks for your help!!!! It works now.
No worries! The important thing is that you are up and running.
Cheers!
The topic ‘Two pages with two different objects groups’ is closed to new replies.