Hi,
I’n getting this problem as well. It only displays the five most recent visitor contributed sightings.
I’ve had a quick look at the code and can not see any filters or counters anywhere to restrict the number of markers. It looks like the sghitings arebeing saved as lat long so it should not be an issue with geocoding quotas from goolge.
anyone found a solution to it yet?
Kevin
Ok, I’ve sort of half solved the problem.
I want to get 20 locations displayed on my maps, at the moment I’m only getting the last five locations.
I’ve been able to get 20 locations to show for the normal [ sightings-map ] shortcode by adding:
‘numberposts’ => 20,
to the array for the public function getAllSightings() in the class-sightings.php file.
Now I need to try and sort out a filtered category shortcode solution.
The shortcode-sightings-map.php seems to be calling a function in the class-sightings file that ddoes not exisit – $manager->getSightingsByCategory
time to play around with may be introducing a new function? Not sure. I’ll keep you posted when I get time to take a closer look.
Kevin
ignore the missing function statement above, it is there.
It seems that there’s an issue with shortcode parameters.
Kevin
Ok everything is sorted now. the shrtcode filters are working ok.
i just added the ‘numberposts’ => 20, to the $manager->getSightingsByCategory array in class-sightings and I’m getting the most recent 20 posts in the category.
Kevin