How do I remove the formatting and style from the imported text

Contents

[ hide ]

    For more how-tos and advice, return to How Do I …?

    Q: How do I remove the formatting and style from the imported text?

    A. You can get FeedWordPress to do this using a small filter module written in PHP. (Specifically, a small filter which made use of the syndicated_item_content filter hook.)

    As far as I know, no-one has yet written a publicly-available filter module that strips out formatting and style from the imported text. If you are interested in getting this feature for FeedWordPress, consider making a gift to support development on the FWP+: Strip HTML project.

    Does that answer your question? If not, use the Talk page to comment on this post or contact me by e-mail for help. Be sure to describe what you are trying to do, and the problems you are running into, with as much detail as possible.

    For more how-tos and advice, return to How Do I …?

    This page is a Wiki! Log in or register an account to edit.

    4 thoughts on “How do I remove the formatting and style from the imported text

    1. I seem to be having a slightly different problem but not sure where to post.

      The formatting comes along just fine, in fact I’m running the feed(s) through Yahoo Pipes as well. However, it seems that the posts that FeedWordPress creates don’t work well with built-in wordpress formatting for built-in elements.

      For example. I took a feed that posts new items as drafts. Then I go into the newly created draft, upload some images and create a gallery with the shortcode [gallery link="file"]
      But then the gallery doesn’t display, instead it just prints out the shortcode as plain text.

      If I then remove the custom fields created by FeedWordpress, and resave it the post seems to work fine.

      Any ideas on that?

      • Hi Oscar,

        By default FWP attempts to exempt syndicated posts from being processed by normal WordPress formatting filters. But given that you are actively editing posts as they come in, my recommendation would be to turn off this setting. You can do so by going to Syndication –> Posts & Links, scrolling down to the Formatting box, and flipping the setting there from “Protect…” to “Expose…” Save Changes, go back to your front page, and see if shortcodes are now being processed properly.

    Leave a Reply

    Your email address will not be published. Required fields are marked *