Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ajax load more


  • Debora1976
    Participant

    @debora1976

    Hi,

    I added this pagination function to my site, for the members directory, but actually I would rather have it to ajax load more.
    Is there a function or plugin that does that?

    add_filter( ‘bp_after_has_members_parse_args’, ‘wbcom_theme_alter_members_parse_args’ );
    function wbcom_theme_alter_members_parse_args( $loop ) {
    if ( bp_is_members_directory() ) {
    {
    $loop[‘per_page’] = 20;
    }
    }
    return $loop;
    }

    Kind regards,
    Debby

  • You must be logged in to reply to this topic.
Skip to toolbar