shibaa987 (@shibaa987)

Forum Replies Created

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

  • shibaa987
    Participant

    @shibaa987

    Well, this thread is pretty old and I have a way how you can enable AMP for bbpress pages.

    Before going to enable AMP support you need below things:
    – Code snippets plugin
    – AMP plugin

    Create a new code snippet and add the following code:
    add_action( ‘amp_init’, ‘amp_bbpress_init’ );
    function amp_bbpress_init() {
    add_post_type_support( ‘topic’, AMP_QUERY_VAR );
    }

    Read more @ How to Implement AMP on bbPress


    shibaa987
    Participant

    @shibaa987

    Well, the above function also worked but needed some modification.

    Here is the code snippet that actually worked:

    function bbp_increase_forum_per_page( $args = array() ) {
    $args[‘posts_per_page’] = get_option( ‘_bbp_forums_per_page’, 100 );
    return $args;
    }
    add_filter( ‘bbp_before_has_forums_parse_args’, ‘bbp_increase_forum_per_page’ );

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