• Alcorec

    (@alcorec)


    Hi!

    Please help me. Sorry 4 my bad english.

    I need to show html tags in truncate_post function. Its function erase any formating tags in my content.

    This function:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Mad_Man

    (@mad_man)

    Hmmmm… The same problem! ??

    Are you using elegantthemes’ themes? ??

    Thread Starter Alcorec

    (@alcorec)

    Yes, I use elegantthemes’ theme.

    I resolve problem.

    Michael

    (@alchymyth)

    @alcorec
    if you solved the problem, please post the solution here to help others – thanks ??

    Bump. Guys, i need this solution ??

    Thread Starter Alcorec

    (@alcorec)

    My english very bad. if U translate my solushen – its very nice!

    # отписался на указанную аську, жду ответа ??

    Bump. Thx to Alcorec for his solution:

    1. First of all you should replace your <p><?php truncate_post(600); ?></p> by this line: <p><?php the_excerpt(); ?></p>.
    2. After that download & install Advanced Excerpt plugin.

    Good luck! ??

    Спасибо. Два дня убил на поиски решения. Даже на оф. сайте не смогли решить вопрос.

    elegant themes.

    /theme/epanel/custom_functions.php

    comment out line #12
    [Code moderated as per the Forum Rules. Please use the pastebin]

    Depending on what version of Elegant Themes you’re using, the line # might be different (mine was 115). In the file stuffthatspins noted (theme/epanel/custom_functions.php) search for this code and comment it out…

    //$truncate = strip_tags($truncate)

    Very useful, thank you frogtown. In the current version I’m running the code formatting in custom_functions.php is as follows:

    $truncate = strip_tags($truncate);

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to show html tags in truncate_post function’ is closed to new replies.