Skip to:
Content
Pages
Categories
Search
Top
Bottom

changing the show all comments amount?

  • Avatar of username_
    username_
    Member

    @username_

    Hello Is there a hook or something I can well hook into to change this default of five to three?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of username_
    username_
    Member

    @username_

    Found a solution to this sorry for posting before doing much searching.

    <?php
    function my_query_filter_new ( $query_string ) {
    $query_string .= ‘&per_page=5′;
    return $query_string;
    }
    add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
    ?>

    Avatar of username_
    username_
    Member

    @username_

    function my_query_filter_new ( $query_string ) {
    $query_string .= ‘&per_page=5′;
    return $query_string;
    }
    add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );

    Avatar of username_
    username_
    Member

    @username_

    It appears this is not the answer to what I was trying to do. This limits the amount of posts on the ajax query string to only show 5 per page. Does any one else have any ideas?

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

You must be logged in to reply to this topic.