Title: Latest posts widget
Last modified: December 8, 2021

---

# Latest posts widget

 *  Resolved [oscontract](https://wordpress.org/support/users/oscontract/)
 * (@oscontract)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/latest-posts-widget/)
 * I have created a page [https://anprimo.bg/posts/](https://anprimo.bg/posts/) 
   which uses a Latest posts widget.
    When I switch language, this page still displays
   the default language instead of the selected language. Please help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flatest-posts-widget%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/latest-posts-widget/#post-15144083)
 * Hi,
 * It’s gutemberg latest post , i look on this problem and write you back.
 * Stéphane
    Falang Team
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/latest-posts-widget/#post-15144260)
 * It’s true there are a bug when display the full post content but work fine with
   the excerpt
    the title is well translated in each case.
 * i will see how to fix this bug.
 * Stéphane
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/latest-posts-widget/#post-15144387)
 * I have found the problem
 * in the latest post gutemberg bloc
    wp-includes/blocks/latest-posts.php
 * for post content they don’t apply filter but for other exerpt/title it’s done
 * if you replace the line 152
    from
 * `$post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES,
   get_option( 'blog_charset' ) ) );`
 * to
 * `$post_content = wp_kses_post( html_entity_decode( apply_filters( 'the_content',
   $post->post_content ), ENT_QUOTES, get_option( 'blog_charset' ) ) );`
 * the problem is solved.
 * perhaps it’s possible to change this in gutemberg or make a specific block for
   this when you want to display content.
 * Stéphane
 *  Thread Starter [oscontract](https://wordpress.org/support/users/oscontract/)
 * (@oscontract)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/latest-posts-widget/#post-15144416)
 * Yes.
    That solved the problem. Thank you very much 🙂

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

The topic ‘Latest posts widget’ is closed to new replies.

 * ![](https://ps.w.org/falang/assets/icon-256x256.png?rev=2351566)
 * [Falang multilanguage for WordPress](https://wordpress.org/plugins/falang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/falang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/falang/)
 * [Active Topics](https://wordpress.org/support/plugin/falang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/falang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/falang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [oscontract](https://wordpress.org/support/users/oscontract/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/latest-posts-widget/#post-15144416)
 * Status: resolved