dimsemenov / Touchfolio

Free responsive portfolio WordPress theme with touch navigation
GNU General Public License v3.0
329 stars 112 forks source link

Gellery description - text formatting problem #65

Open D3w00n opened 6 years ago

D3w00n commented 6 years ago

Hi Everyone !!

At the beginning i would like to say that i'm new in here and I'm not sure if it is correct place to put my issue but I need some clue how to resolve thing that is bugs me out.

When I add some text via WordpressText editor to a gallery description It looks ok. I can apply any formating I need but after publishing, text in that div is unformatted. Only when I switch editor to a "text mode" and apply HTML tags (like
) text looks fine. After changing text editor to a "visual mode" it automaticly deletes my html tags and text is mess again. I think it's probably some compatibility issue with new WordPress but can anyone give mi some hint how to fix it ?

Thanks in advance,

D3w00n commented 6 years ago

Solved. content-ds-gallery.php

need to change:

$content = get_the_content(); to $content = apply_filters( 'the_content', get_the_content() );