Tuesday, January 10, 2012

FeedWordpress duplicate posts with YD Domain Mapping


Using FeedWordPress to pull in aggregated feeds to a Wordpress blog? Also using the Wordpress MU Domain Mapping plugin to map an arbitrary domain to your blog? Seeing posts get duplicated? Then read on ....

I've isolated the duplicate posts issue to some kind of interaction with the Wordpress MU Domain Mapping plugin. We're using this so that we can map arbitrary domains to our network sites.

E.g.

  • our Wordpress Network is set up as wp-network.foo.com, on a subdomain setup
  • a network site 'bar' would then be bar.wp-network.foo.com
  • we setup the feedwordpress plugin to pull in posts from a tag:uri feed
  • we get unique posts in, with GUIDs of the form bar.wp-network.foo.com?guid=(some guid)


All well and good. BUT,  then we use the domain mapping plugin to map blog.bar.com to that network site...

It seems that when we hit a network site on its mapped domain (blog.bar.com), it instantly duplicates the syndicated posts with guids of the form blog.bar.com?guid=(the same guid)

I set up 2 identical blogs, subscribed them both to the same feed, and applied a domain mapping to one but not the other. All was fine until I hit the blog homepage on the new mapped domain-  at which point all the posts got replicated with mapped domain GUIDs as above.

So I don't know if this is an issue with FeedWordPress or with the Wordpress MU Domain Mapping plugin, but they definitely don't seem to play nicely with each other.

Hope this helps someone!

1 comment:

Sergi Alonso said...

I have solved the problem by changing the database: wp_2_options -> siteurl

Just change the subdomain of the main installation for the domain you are using