Hello,
I have a custom post type with Google maps functionality set up. Everything was working fine, then I imported posts using WP All import. All the data is now inside posts, but I have to enter Google maps addresses manually, because WP All import doesn't support Google Maps addresses.
The problem is when I enter maps data manually they show up correctly in the backend and on single post template, but pins don't show up on page that has displays all post using "Custom search filter". The filter correctly displays data but pins on the map don't work.
Please note that I deleted and reimported data several times. If I manually add a post and enter maps address, the pin shows up correctly (but only for new posts). Is it possible that there is something left in the database from the old posts that is messing up pins on the map?
Page with map and filter is hidden link, password to view is "podmornica".
I think the problem is that the posts don't have any address data. If you look at just a few sample posts that I took randomly you'll see that they dont have their address fields filled out. hidden link hidden link hidden link
This will be a bit tricky to achieve as you're going to need 2 separate maps and another view that is displaying all the posts. I would advise against this as it will introduce slow downs on the site given the number of posts that you have on the site.
As more items gets filled out with the address more markers will appear.
However if you truly want to do this then you will need to make use of the conditional blocks to hide one of the maps until the search is performed. I can provide a bit more details on how to do it but I would like to know if the client really wants to go forth with this approach.
Yes, please provide details on how to do this. Now I don't know how to display more than 39 posts in a view, this is a limit in view options.
Thanks, David
I went ahead and setup the demo for you. hidden link
The only issue is that because you are using an AJAX refresh then the switching of the map won't work. It will only work when the page is fully refreshed.
This is because we are using a conditional block around the map to check whether the view has been interacted with.
Also the code to remove the page limit on the view is.