• I’m trying to create a new feed template which would only show text version of the post and I want to strip html down. I’ve tried researching this issue and what I found seems to be outdated and not work.

    Can anyone provide some info on how that can be done?

    I tried using strip_tags, the_content_rss and the_content_feed with value 2 for stripping html. It’s not working. Would really appreciate some help.

    I’m using regular feed template that comes with WP.

    Thanks,
    Viktor

Viewing 1 replies (of 1 total)
  • Thread Starter Viktor Nagornyy

    (@viktorix)

    Here’s what I’m using now:
    <?php echo strip_tags(get_the_content_feed('rss2'),'<h2><h3><b><br />'); ?>

    The header tags and other things are not removed. Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘remove html from feed content’ is closed to new replies.