Skip to:
Content
Pages
Categories
Search
Top
Bottom

how can you change the midrange value for the activities pagination?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of ehoneys
    ehoneys
    Participant

    @ehoneys

    is there anyone that can help me with this ?

    Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    well, you can ,but it is hardcoded in the bp-activity/bp-activity-templatetags.php

    Open this file

    and take a look at the function

    bp_activity_template

    You will see something there

    like

    $this->pag_links = paginate_links( array(
    'base' => add_query_arg( 'acpage', '%#%' ),
    'format' => '',
    'total' => ceil( (int)$this->total_activity_count / (int)$this->pag_num ),
    'current' => (int)$this->pag_page,
    'prev_text' => '«',
    'next_text' => '»',
    'mid_size' => 1
    ));

    Change the mid_size value from 1 to what ever you want.

    Hope it helps.

    Avatar of ehoneys
    ehoneys
    Participant

    @ehoneys

    thank you ..

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

The topic ‘how can you change the midrange value for the activities pagination?’ is closed to new replies.