# php truncate\_post

**URL:** <https://www.phphelp.com/t/php-truncate-post/19889>\
**Category:** Help with WordPress\
**Created:** [March 20, 2013, 10:56am UTC](https://www.phphelp.com/t/php-truncate-post/19889 "2013-03-20T10:56:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imid](https://www.phphelp.com/letter_avatar_proxy/v4/letter/i/e99b99/32.png) [@imid](https://www.phphelp.com/u/imid)\
**Post date:** [March 20, 2013, 10:56am UTC](https://www.phphelp.com/t/php-truncate-post/19889/1 "2013-03-20T10:56:58Z")

</div>

Hello,

I have made alot of changes to a theme I bought, but I know almost no php. At the moment my page has just text from a post with the php truncate\_post() method. It is just text with out the possibility to formating it.

At first I just put the correct HTML formated text in the entry.php, but I need to make the page multilingual so I cant use that method. I also tried to define the HTML to be a string, so I could translate it in WPML string translator, but it didn’t work.

What would be the easyest way for me to achieve what I’m looking for(probably just an eazy php method I just dont know)

my page is [http://www.skesa.ee](http://www.skesa.ee)

Thank you in advance! 🙂

---

<div class="post-metadata">

**Author:** ![darkfreaks](https://www.phphelp.com/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@darkfreaks](https://www.phphelp.com/u/darkfreaks)\
**Post date:** [March 15, 2023, 11:47pm UTC](https://www.phphelp.com/t/php-truncate-post/19889/2 "2023-03-15T23:47:02Z")

</div>

The easiest way to achieve the formatting you are looking for is to use a plugin like Advanced Custom Fields (ACF). ACF allows you to create custom fields with specific formatting, such as bold, italic, and more. You can then use these fields to add formatting to your content in the post editor. This way, you can easily make your content multilingual.
