Gellery description - text formatting problem
Opened this issue · 1 comments
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,
Solved.
content-ds-gallery.php
need to change:
$content = get_the_content();
to
$content = apply_filters( 'the_content', get_the_content() );