Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Automattic

    (@automattic)

    Hi,

    There is not, only 10 per page is currently supported. Because the Eventbrite API does not allow us to specify the number of results we want back, but instead sends up to 50 with pagination info, all the math has to been done in the plugin, and adding this variable just hasn’t been dealt with yet. See the set_properties() method here for all the gory details.

    Thread Starter handhugs

    (@handhugs)

    Is there a way I could alter that code or add a function to my site that would allow me to see all 50 results on one page?

    Plugin Author Automattic

    (@automattic)

    I think you could just eliminate all the math and make L153 of class-eventbrite-query.php just:

    $this->posts = $this->found_posts

    but returning and rendering potentially 50 posts on a single page is a scary thought. Up to you of course, you’ll also want to be sure pagination works as expected, if there is any.

    Thread Starter handhugs

    (@handhugs)

    tried your patch and it gave me errors:
    Warning: array_map(): Argument #2 should be an array in …/wp-content/plugins/eventbrite-api/inc/class-eventbrite-query.php on line 156

    Warning: reset() expects parameter 1 to be array, null given in …/wp-content/plugins/eventbrite-api/inc/class-eventbrite-query.php on line 162

    advice?

    Plugin Author Automattic

    (@automattic)

    Oh, duh; that should have been:

    $this->posts = $this->api_results->events;

    Again, you’ll still want to handle pagination somehow to avoid timeouts an bad performance in general.

    We’re only displaying 3 (not 10) events per page on our Eventbrite Events page. Would like to be able to display 10, which from your post sounds like the default, but for us it seems to be 3 for some reason. How can we reset it to 10, or whatever number we’d like?

    I don’t know CSS, so I would really need to be led through this.

    Here’s a link to our website: https://fullcircleseries.com/our-entire-series/

    Thx!
    Linsey

    Plugin Author Automattic

    (@automattic)

    Hi Linsey, please start a new thread if you still need help with this, thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Posts / Events per page?’ is closed to new replies.