Title: [Plugin: BuddyPress Custom Posts] Paging issue
Last modified: August 19, 2016

---

# [Plugin: BuddyPress Custom Posts] Paging issue

 *  [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-buddypress-custom-posts-paging-issue/)
 * Hi, I am using your EventPress plugin with BuddyPress (all the latest versions).
   I added a type/index.php file to my theme in order to overwrite the default events
   directory page. (Let me know if there is a better way of doing this).
 * My issue is that I am using query_posts() to overwrite the query and encountered
   a paging issue. Here is my code:
 *     ```
       $query = $wp_query->query_vars;
       $query['nopaging'] = 0;
       if( !$query['paged'] ) $query['paged'] = 1;
       query_posts($query);
       ```
   
 * I am using next_posts_link() and get a 404 regardless of permalink structure.
   Actually, I am being redirected to the homepage, but I assume it is because it
   cannot find the paged events page.
 * Any help would be appreciated… and thanks for the EventPress plugin. Great work!
 * [http://wordpress.org/extend/plugins/buddypress-custom-posts/](http://wordpress.org/extend/plugins/buddypress-custom-posts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [kunalb](https://wordpress.org/support/users/kunalb/)
 * (@kunalb)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-buddypress-custom-posts-paging-issue/#post-1713451)
 * Well, I’m afraid there’s no easy way to allow for pagination right now. How BPCP
   displays events is by completely sidestepping the default blog post display which
   BuddyPress inherits from WordPress — this allowed me to get URLs like events/
   <event-name>/, events/<event-name>/edit, etc without worrying too much about 
   wordpress detecting and overriding buddypress as well as being able to directly
   use various buddypress functions for adding sub-menus, etc.
 * I’ve added this as a feature to be added in BPCP 0.1.3. I’ll basically have to
   over-ride the next_posts_link function using a filter and add support for pagination
   in the query that is generated.
 * (BPCP 0.1.3 should be out by 20th October or so)
 *  Thread Starter [Micah Wood](https://wordpress.org/support/users/woodent/)
 * (@woodent)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-buddypress-custom-posts-paging-issue/#post-1713566)
 * Awesome! I’ll keep an eye out for it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: BuddyPress Custom Posts] Paging issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-custom-posts.svg)
 * [BuddyPress Custom Posts](https://wordpress.org/plugins/buddypress-custom-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-custom-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-custom-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-custom-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-custom-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-custom-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Micah Wood](https://wordpress.org/support/users/woodent/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-buddypress-custom-posts-paging-issue/#post-1713566)
 * Status: not resolved