Skip Navigation

Open

Reported for: BuddyPress Multilingual 1.7.0

Topic Tags: Compatibility

Overview of the issue

When using the BuddyBoss theme, within the User profile > Forums page, “My Discussions” and “My Replies” sections are not displaying content for translated forum topics in the secondary language. This means if a user has commented on a translated forum topic, their interactions aren’t visible when viewing the profile in the translated version.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Add the following snippet to the theme’s functions.php file:
    // WPML Workaround for compsupp-6425
    function wpml_compsupp6425_fix_query_in_user_profile( $r ) {
        if ( class_exists('Sitepress') && isset( $r['post_parent'] ) && $r['post_parent'] === 'any' ) {
            $r['post_parent'] = '';
        }
        return $r;
    }
    
    add_filter( 'bbp_after_has_topics_parse_args', 'wpml_compsupp6425_fix_query_in_user_profile' );
    add_filter( 'bbp_after_has_replies_parse_args', 'wpml_compsupp6425_fix_query_in_user_profile' );
    

Deixar uma Resposta

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

Você pode usar estas tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>