WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Events
Pagination (5 posts)

  1. Jayce
    Member
    Posted 1 year ago #

    Perhaps in a future version pagination can be included in this plugin? For a site I'm working on, we have a lot of events scheduled, and I want to give visitors access to the events info in a list, but not have them need to scroll a lot.

    To paginate the events in the meantime, I'm using the jQuery plugin Pajinate. This lets visitors access a longer list of events without needing to scroll through them all.

    Here's a page with the pagination: Example events.

    This is the code used on the example page:

    <script type="text/javascript">
    	jQuery(document).ready(function(){
    		jQuery('#page_container').pajinate({
    			items_per_page : 4,
    			item_container_id : '.gce-list',
    		});
    	});
    </script>
    
    <div id="page_container" class="container">
    	<div class="page_navigation"></div>
    
    	[google-calendar-events id="1" type="list" title="" max="100"]
    
    	<div class="page_navigation"></div>
    </div>

    http://wordpress.org/extend/plugins/google-calendar-events/

  2. Ross Hanney
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jayce,

    List pagination is certainly a possibility for the future.

    Your solution seems to work pretty well in the meantime though!

  3. underclass
    Member
    Posted 1 year ago #

    Hi

    do you know if this will be implemented at all, it would be a great feature to have in the plugin!

    thanks

  4. underclass
    Member
    Posted 1 year ago #

    @Jayce, I've been trying to implement your fix, but I am having a lot of trouble calling the js in a page, could you give me any tips?

  5. underclass
    Member
    Posted 1 year ago #

    @Jayce Specifically calling the elements within the nav div

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic