Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress posts Pagination


  • mattg123
    Participant

    @mattg123

    Hi I’m trying to get pagination working from members profile pages. I found this http://wordpress.org/extend/plugins/bp-posts-on-profile/ plugin, it doesn’t work any longer, so I created my own way of doing this using bp-custom.php everything works okay and the posts are displayed fine, but I can’t seem to get the pagination working, is there anything obvious I am missing I’ll post a snippet of the code I’m using.

    ?php
    if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
    elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
    else { $paged = 1; }
    $items = 20;
    $args=array(
    'posts_per_page' => $items,
    'category__not_in' => get_option('pheno_blog_cats'),
    'author' => bp_displayed_user_id(),
    'paged' => $paged,
    );

    query_posts($args);
    ?>

    Is there anything obvious I am missing?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Buddypress posts Pagination’ is closed to new replies.
Skip to toolbar