Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 1 replies, has 0 voices.

Last updated by Shekhar Bhandari 3 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
November 19, 2025 at 6:45 am

martinW-39

Background of the issue:
I am trying to display a list of translated blog posts using the PowerPack Content Grid on a Hungarian page. The individual blog posts are fully translated in WPML, and the Hungarian version contains 100% Hungarian content inside Beaver Builder modules. The issue can be seen on this page: hidden link

Symptoms:
The Content Grid always displays the German (default language) content as the excerpt/trimmed content, even though the Hungarian Beaver Builder content exists and is published. Only the main content/excerpt is German — the title and categories are correctly shown in Hungarian. The issue affects only the Grid — the single post page shows the correct Hungarian content.

Questions:
Why does the Content Grid display German content instead of Hungarian?
How can I ensure the Content Grid retrieves the Hungarian translated post content?

November 20, 2025 at 4:31 am #17593820

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Our compatibility team checked the issue and suggested the following.

Open the \wp-content\plugins\bbpowerpack\modules\pp-content-grid\templates\post-content.php file

Replace:

} else {
		if ( $settings->content_type == 'excerpt' ) :
			the_excerpt();
		endif;
		if ( $settings->content_type == 'content' ) :
			$more = '...';
			echo wp_trim_words( get_the_content(), $settings->content_length, apply_filters( 'pp_cg_content_limit_more', $more ) );
		endif;
		if ( $settings->content_type == 'full' ) :
			echo wpautop( get_the_content() );
		endif;
	}

With

	} else {
		// WPML Workaround for compsupp-8209 
		$post_id = get_the_ID();
		if ( get_post_meta( $post_id, '_fl_builder_enabled', true ) ) {

			/**
			 * Replace WP content with BB layout data.
			 */
			ob_start();
			FLBuilder::render_content_by_id( $post_id );
			$content = ob_get_clean();
		} else {
			ob_start();
			the_content();
			$content = ob_get_clean();
		}

		if ( $settings->content_type == 'excerpt' ) :
			$excerpt_len = (int) apply_filters( 'excerpt_length', 55 );
			echo wpautop( wp_trim_words( wp_strip_all_tags( $content ), $excerpt_len ) );
		endif;
		if ( $settings->content_type == 'content' ) :
			$more = '...';
			echo wp_trim_words( $content, $settings->content_length, apply_filters( 'pp_cg_content_limit_more', $more ) );
		endif;
		if ( $settings->content_type == 'full' ) :
			echo strip_tags( $content, '<p><a><span><strong><em><ul><ol><li><br><hr><blockquote><img><h1><h2><h3><h4><h5><h6>' );
		endif;
	}

let me know if this helps.

Thanks

The topic ‘[Closed] PowerPack Content Grid shows German (default language) excerpt on Hungarian translated pages’ is closed to new replies.