How to add html tags in description in rss-wordpress fide?

Tell me how to add html tags (only p and a href) to the content in rss feed wordpress?

used design - displays all the text without additional fields and without tags

anything to add/change to output only the text of the post with formatting p tags and a href?

Thank you
September 18th 19 at 23:49
1 answer
September 18th 19 at 23:51
Here is the solution to Your problem

However in this approach html tags are displayed and a simple call to the_excerpt, but I think it is possible to get around.

Trying to replace
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'wpse_custom_wp_trim_excerpt');

remove_filter('the_excerpt_rss', 'wp_trim_excerpt');
add_filter('the_excerpt_rss', 'wpse_custom_wp_trim_excerpt');
Something flies story if you change to the_excerpt_rss - Webster.Kshler commented on September 18th 19 at 23:54
: So it is necessary to look at the problem.. It was more of a guess that will work than a detailed view of the dependencies in the code of these functions. . Working example concerned a slightly different situation, but for Your case, most likely you will need a bit of a file. - dolly.Ha commented on September 18th 19 at 23:57
Alexander, in any case, thank you! I will understand - Webster.Kshler commented on September 19th 19 at 00:00

Find more questions by tags WordPressRSS