Contents
[ hide ]
Popular Add-Ons
Many add-ons and filters have been developed for or by the FeedWordPress community. Here are some of the most commonly used.
- Add Attribution for FeedWordPress provides a convenient interface for adding attribution or other boilerplate text to syndicated posts without having to edit your WordPress theme.
- Add-on: Limit Posts By Date allows you to filter out syndicated posts by their date, age, or the number of incoming posts.
- Add-on: Limit Size of Posts allows you to set upper limits on the length of posts, making FeedWordPress display a shortened excerpt when a syndicated post exceeds a given number of characters, words or sentences.
- Strip HTML for FeedWordPress is an add-on module which allows you to automatically strip out HTML tags from the body of posts that FeedWordPress has syndicated.
- Add-on: Open links in new windows is an add-on module which automatically rewrites links within the content of syndicated posts, so that the links within the body of the post will open in a new browser window.
Developing Add-Ons and Filters
FeedWordPress creates hooks using the WordPress plugin architecture. You can exploit these to write PHP plugins that alter FeedWordPress’s behavior or filter incoming posts. See How do I write add-ons for FeedWordPress? for a quick-start guide on how to prepare the modules.
API
- class SyndicatedPost
- class SyndicatedLink
- class FeedTime
Filters
syndicated_item
— applied to each item coming off the Atom/RSS newsfeed; allows you to alter any XML field or to filter out this item and skip ahead to the next postsyndicated_post
— applied to each potential post for the WordPress database; allows you to alter any database field or to filter out this item and skip ahead to the next post
Post Content and Data
-
syndicated_item_title
— filter, alter or act on the post title for each incoming post being considered for syndication -
syndicated_item_author
— filter, alter or act on the author name and author meta-data for each incoming post being considered for syndication -
syndicated_item_content
— filter, alter or act on the HTML content for each incoming post being considered for syndication -
syndicated_item_excerpt
— filter, alter or act on the text excerpt for each incoming post being considered for syndication -
syndicated_item_categories
— applied to an array of category names representing the categories provided for that individual post by the source feed -
syndicated_item_tags
— applied to an array of category names representing the inline tags provided for that individual post by the source feed -
syndicated_item_published
— filter, alter or act on the Unix-epoch timestamp for the first publication of a syndicated post -
syndicated_item_created
— filter, alter or act on the Unix-epoch timestamp for the creation of a syndicated post -
syndicated_item_updated
— filter, alter or act on the Unix-epoch timestamp for the most recent update to a syndicated post -
syndicated_item_guid
— filter, alter or act on the guid (globally unique identifier) that identifies a particular syndicated post
Post Meta-Data
syndicated_post_slug
— filter, alter or reset the slug that FeedWordPress assigns to an incoming syndicated post when it is stored in the WordPress posts tablesyndicated_item_enclosure_url
— filter, alter or act on the URL(s) of media enclosures attached to the file by an RSS or Atom enclosure element, or by a MediaRSS attachment.syndicated_item_enclosure_length
— filter, alter or act on the length in bytes reported for media enclosures attached to the file by an RSS or Atom enclosure element, or by a MediaRSS attachment.syndicated_item_enclosure_type
— filter, alter or act on the MIME type for media enclosures attached to the file by an RSS or Atom enclosure element, or by a MediaRSS attachment.syndicated_item_source_title
syndicated_item_source_link
syndicated_item_comments
syndicated_item_commentrss
syndicated_item_link
Post Processing
Post Display
Feed Data
Actions
feedwordpress_update
— invoked just before FeedWordPress begins to check one or more newsfeeds for updates. Hooked in functions receive as an argument the URI of the blog or newsfeed that FeedWordPress is updating.feedwordpress_check_feed
— invoked just before FeedWordPress checks an individual newsfeed for updates. Hooked in functions receive as an argument an associative array of data about the feed.$feed[1]
contains the (human-readable) name of the newsfeed;$feed[2]
contains the URI about to be checked; etc.feedwordpress_check_feed_complete
feedwordpress_update_complete
— invoked when finished checking all of the feeds to be checked in the most recent update round. Hooked in functions receive as an argument an array containing the number of new posts added and the number of posts updated.post_syndicated_item
— invoked whenever FeedWordPress has completed inserting a new post into the WordPress database. Receives the numerical ID of the new post as an argument.update_syndicated_item
— invoked whenever FeedWordPress has completed updating a previously existing post in the WordPress database. Receives the numerical ID of the updated post as an argument.feedwordpress_admin_page_authors_meta_boxes
feedwordpress_admin_page_authors_save
feedwordpress_admin_page_backend_meta_boxes
feedwordpress_admin_page_backend_save
feedwordpress_admin_page_categories_meta_boxes
feedwordpress_admin_page_categories_save
feedwordpress_admin_page_feeds_meta_boxes
feedwordpress_admin_page_feeds_save
feedwordpress_admin_page_posts_meta_boxes
feedwordpress_admin_page_posts_save
feedwordpress_admin_page_syndication_meta_boxes
Add-Ons Awaiting Development
These add-ons represent add-on features that have been commonly requested, but which are better provided through an add-on than through additions to the FeedWordPress core code. If you would like to support the development of any of these features, you can do so with a small donation to help cover the costs of the time for development and testing. If you need an add-on or filter to implement a feature that isn’t listed here, you may be
interested in the custom development services available to FeedWordPress users.
-
Alternative Caching Options — an add-on module to allow you to store SimplePie feed cache data in locations other than the WordPress options database table — in a separate table, in another database, or in flat files in the filesystem.
My rss feed has a source for each item, and I cannot get Add Attribution to display the item source-name. It always defaults back to the name of the feed. I am using [source-name], but it still won’t show the right attribution for the item. Please help!
Is the fwp-limit-size-of-posts add-on still available? For some feeds, I don’t want to post the complete post, but about 200 words.
Hello,
Is the plugin still available for download? Where can i get it?
Thanks
I want to filter i.e. not import any posts which contain certain keywords. For example, if an RSS feed post contains the keywork “Bingo” I do not want to import that post..
I have the Advanced Filter plugin installed but cannot see an option to do what it is I want to do.
How do I achieve this?
I use FeedWordPress to create various mash-up sites of my own network of websites. But one thing that is missing, two things:
1) The it creates real regular wordpress posts types – most plugins that add to posts cannot add to your posts, such as the Chitika ad plugin.
2) Need a way of assigning a thumbnail featured image per feed!!!!!
Hi Team,
I am facing problem to fetch the image as separate tag in my rss like as below :
1862684
Business
News
Testing RSS
Author
Author
Oct 29 2013 18:58PM +0530
dsafsd sdfdsfd
http://localhost:6060/myblog/images/topic.png
http://localhost:6060/myblog
Can you please help me in this , how can i get the image tag to download the image and set as feature image like your advance fielter.
Is there a shortcode to display the title of the post???
Pingback: Feed WordPress 101: A Few More Tricks For Your Site - CogDogBlog
Getting a 404 when trying to download this. Same goes for the open in new window add-on.
hi . i have tagging plugin that have a problem with feedwordpress that not tagging any post was sending with feedworpress .
i use this action to save the tags : save_post but not working . but any post sending without feedwordpress my tagging plugin has work how i can solve this problem ?
i ma using feedwordpress every post show repeat content in a post when i edit its show only one any solution please help me out this problem
I’m looking for how to grab the wordpress post ID for an incoming post. I’ve set the feeds to point to the local permalink option. I am sideloading any images (via a FWP add-on I’m writing) and need the post_id so I can assign a featured image. Reading the help file (API, etc.) I cannot seem to figure it out. Help…?
Ok, looks like I solved it – problem was not being able to find call parameters for various functions. That handled, I’ve developed a plugin for finding an image in a feed post, grabbing one and assigning it to the thumbnail if there isn’t already one assigned. I plan to grow this to allow processing of posts already in the DB as well as choosing which image# (ideally set per feed) to use for the thumbnail.
I do have another issue, been around awhile I think:
This feed is a good example: https://blog.bottlesfinewine.com/feed/
Feed validates OK, pops up on readers, etc. But FeedWordPress says it’s an invalid feed, “probably due to incorrect xml characters in the feed.” Point me in the direction and maybe I can solve this?
Is there a way to retrieve images from a syndicated RSS feed and use them as the featured image in WordPress posts?
Hey Matthew, did you find a solution to this?