Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Pagination format / output

  • Profile photo of wiesson
    wiesson
    Member

    @wiesson

    Hello there,

    i try to change the pagination template – but i dont know where i should look?!

    The Buddypress Members-loop.php only says

    so i want to change the template from <a> </a> and <span> .. </span> to <ul> <li> ... </li> </ul> .. can you help me?

    i found in the functions.bb-core.php this:
    function bb_paginate_links( $args = '' ) { .. }

    and in line 305 to 318:

    
    switch ( $type ) {
    case 'array':
    return $page_links;
    break;
    case 'list':
    $r .= '<ul class="page-numbers">' . "nt" . '<li>';
    $r .= join( '</li>' . "nt" . '<li>', $page_links );
    $r .= '</li>' . "n" . '</ul>' . "n";
    break;
    default:
    $r = join( "n", $page_links );
    break;
    }
    return $r;
    

    looks okay for me, but how to activate it?

  • The topic ‘Change Pagination format / output’ is closed to new replies.
Skip to toolbar