Support » Plugin: Eventbrite API » Problem with paging with Eventbrite_Query

  • I have used the following code to query my events in WordPress template file

    $events = new Eventbrite_Query(  apply_filters( 'eventbrite_query_args', array(
            'display_private' => true,'order'=> 'DSC', 'orderby' => 'date','nopaging' => false,'limit'=>9,
        ) ) );

    I have put this at the end after endwhile
    eventbrite_paging_nav( $events );
    Problems are
    1) Unable to get any paging
    2) The array returned has 4 events, it should have 6
    3) Total pages shown is 1
    Can somebody point to an example with paging in WP to show all the events

Viewing 1 replies (of 1 total)
  • Plugin Author Automattic


    Hi vblord,

    On first look, I think the 'order' and orderby are invalid.

    Whenever you see an inconsistency between the events returned and what you think should come back, check with the Eventbrite API tool to be sure of what you’re getting from the API.

    Your user ID is at Tools > Keyring > External ID in your WordPress admin, and the token can be found under Account Settings > App Management > Show Client Secret and OAuth Token > Your personal OAuth token in your account.

    Their Quick Start guide also gives some handy tips in working directly with their API.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with paging with Eventbrite_Query’ is closed to new replies.