I’ve built a plugin for publishing events.
I built the plugin using a test site with dummy events. Once I got it working I installed the plugin a local development version of a website that I’ve got in production.
In my dummy test site, the plugin works as expected. There’s a template that gets events and publishes html.
That full template can be seen here: https://github.com/sunilw/events-grid/blob/master/loop/grid_loop.php
On the development site ( a clone of a production website ) tribe_get_events() only gets four events even though eight events have been created and are in ‘published’ mode.
To make sure that the WordPress settings weren’t over-riding the number of events published, I went to ‘settings’->’reading’ and set ‘blog pages show at most’ to ’12’.
This didn’t change anything.
To test my call to tribe_get_events(), I added this line to my template:
Hello from Events Grid. We got <?php echo count(tribe_get_events()) ?> posts
This echos the number ‘4’.
What could be stopping tribe_get_events() from getting all events?