Feedwordpress Filters (announcement)

 

Update: Feedwordpress Advanced Filters has been released, see this page.

Avid readers of this blog (hi mom!) know that I dive a lot into the Feedwordpress plugin. But still some things are not satisfying enough for me.

RSS is a great technique to get data, but unfortunately some of the sites I gather my feeds from are, let’s say, not very good. A lot of feeds out there need editing and molding to make it decent. This is one of the reasons I need Feedwordpress filters to shape the content a little bit.

For simply excluding posts there is the quite nice ADA Feedwordpress plugin (if hope to use this logic some day, since it’s good). But I yet couldn’t find any plugin that let’s you do what I want.

Introducing FeedWordpress Advanced Filters

I wanted a flexible yet easy method to filter content from feeds. So I decided to start my own plugin. I have had some experience writing small plugins ( replacing this or doing that ) and digging around other peoples plugin, but this is my biggest project so far.

Features:

Filter-wise:

  • Filter certain keywords from the feed
  • Removing HTML from the post
  • Being to able to add posts to an extra category if a certain keyword is found
  • Resize images found in feed to standard WordPress sizes (i.e. ‘medium’)
  • Ability to move images to front or bottom of post

General:

  • Well-written and clear code respecting namespaces etc
  • Easily extendible ( other filters )
  • Fitting in the Feedwordpress framework

So far

By now I’m testing the plugin on one of my real sites to see if everything is according to wish, squish bugs and improve things that come up.

The idea is to release to code to the WordPress community (of course) but I want to be sure that no really weird things can happen first.

What other filters would you like to see for Feedwordpress? If you came to this article because you are looking for similar functionality and you want to have a go with it on a Test installation feel free to comment or contact me!

Tags: , , ,


Bas Schuiling

Bas Schuiling

Expert on everything web development and WordPress. Is pressing his words when version 1 came out and has been liking it ever since. More than 10 years of work experience in web development and writer of this blog.


5 comments

  1. Hi. I’m looking for something similar. If I don’t find it, I will develop it !
    For now I’m parsing RSS into FW coming from a twitter search ( optimised thru feedburner: http://feeds.feedburner.com/hashtaginthesee/soniadersion?format=xml )

    The is recorded like this in the xml:
    SoniaDersion (Sonia Dersion) .
    What I would like is to remove brackets and its content “(Sonia Dersion)” before recording (only) the author “SoniaDersion” into the WP database.

    Hope I ‘m clear in my explanation, english is not my first language :-).
    Merry Christmas by the way :-)

  2. Hi. I’m looking for something similar. If I don’t find it, I will develop it !
    For now I’m parsing RSS into FW coming from a twitter search ( optimised thru feedburner: http://feeds.feedburner.com/hashtaginthesee/soniadersion?format=xml )

    The is recorded like this in the xml: SoniaDersion (Sonia Dersion) . What I wolud like is to remove brackets and its content “(Sonia Dersion)” before recording the author “SoniaDersion” into the WP database.

  3. Hi !your plugin fits absolutelly to my needs.
    May i have a copy for testing?
    Thanks
    Jimmy

  4. Hi! I’m definitely interested in using a HTML filter for FeedWordPress, and, like you, I was planning to do my own, when I saw your article. I have a site needing to import a lot of feeds from Blogger (long story, but basically the main person updating a series of blogs finds WP “too difficult to use” and prefers to use Blogger, so I need to import the data from there into WP…). Blogger, unfortunately, is fond of adding a huge amount of DIV’s and SPAN’s which break the whole HTML on WP, which means a lot of manual editing, which, of course, is what I want to avoid to do all the time!

    To make things a bit more complicated, I wish to retain “safe” tags like A, IMG (possibly with some cleaning up, though), B/STRONG, I/EM, P, BR, and perhaps even HR. DIV and SPAN are the ones to go.

    So I’ll be more than happy to test your plugin and see if it is able to get easily fixed to add the extra bits I need.

    Thanks for doing this :)

    Previously, this functionality was available from YD FeedWordPress (which hasn’t been updated in a few years and is not compatible with PHP 5.3 any longer) and FWP+: Strip HTML Tags from Posts (which has a broken download link to a file from 2010). So we clearly need something new.

  5. Cool. I just completed a recent update, so might be good for testing. I’m sending you an email! People who say WP is too hard are scary btw, especially if they insist on blogger *brr*

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>