1

Topic: "Duplicate Posts" in Home / Sidebar

There is an issue reported by many users stating that they have "duplicate posts" appearing in their home page, and their sidebars. These posts are linked to the correct post URL, but are displaying the wrong information.

I've been finding the source of this issue for days, and have looked for many workarounds for this issue, and have roughly found the answer.

I have realised this issue happens when you have some plugins like Sociable activated with the theme, and with the option to display those links on the front page. Basically, this line is the culprit:

$post = $wp_query->post;

What does this do? It sets the global $post variable to the main query's current post.

While this is harmless against most blog themes which has only one or two main queries, it is not when it comes to Arras. Arras uses multiple custom loops to power the featured posts and the sidebar widgets.

A solution to the issue is not to reference $post from $wp_query->post, but to reference the global $post variable instead.

In the case of the Sociable plugin, all you need to do is to comment that line.

I'm not sure about other plugins that cause this issue, but I think it would be good if we keep record of those in this topic. Hopefully, we could post the appropriate code fixes for individual plugins here as well.

Also, if you really wish to use the plugin with Arras, it's good that you give a heads up to the authors of the affected plugins. smile

Meanwhile, I will continue to find workarounds for this issue on future releases.

Thanks in advance!

Credits to the following forum topics in WordPress.org:
http://wordpress.org/support/topic/soci … tpost-flaw
http://wordpress.org/support/topic/soci … oop-themes

2

Re: "Duplicate Posts" in Home / Sidebar

Affected Plugins

  • Sociable

  • SexyBookmarks

Re: "Duplicate Posts" in Home / Sidebar

I've simply renamed the $post into $spost. Works flawless.

Last edited by dumbravaandrei (2010-10-12 14:30:11)

Supporting Arras for Romanian public! Updates of Romanian version for Arras can be found here. You can visit my WordPress support project to see the power of Romanian Arras!

Re: "Duplicate Posts" in Home / Sidebar

Sorry for being stupid, but where do I need to change this at? I am having what I think is this problem on my site: http://www.10mfh.com/ and I do use sexybookmarks.

Thanks!

Re: "Duplicate Posts" in Home / Sidebar

dumbravaandrei wrote:

I've simply renamed the $post into $spost. Works flawless.

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

Thank you for sharing great info.  smile

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

sexy bookmarks has always given me issues and I tend to stay away from it. I have found other better alternatives

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

Hi
We are active in the Interior design Jacksonville community, and the industries which impact our client services, such as the fabrics and furniture industries. DOTI Ponte Vedra Beach specializes in residential interior design, and assists clients with a variety of budgets, to design primary and secondary homes, condominiums and townhomes, beach houses and vacation homes.

.

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

JZonline123 wrote:

sexy bookmarks has always given me issues and I tend to stay away from it. I have found other better alternatives

   I'm having the same problem, let me know when you figure this out. Thanks!  <a href=

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

I have used the Sociable plugin on my Oscar Mayer coupons website, and have done for some time now.  Thanks so much for posting this fix, i didn't want to have to find another plugin!

Last edited by Slngz (2011-09-06 19:21:20)

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

This is Great..Thanks for sharing this info

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

I'm getting this same error, and it seems to be caused by my Facebook Comments for Wordpress plugin... When I tried disabling the different plugins, that was the one that triggered it. I very greatly need that plugin to work, but I also can't have the theme broken sad Any ideas of how to fix this??

http://www.sciencespotlight.com/tech/

Thanks so much!

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

Seems to be working out ok for me so far after changing the posts name.. fingers crossed! marijuana seeds for sale weed seeds for sale

Thumbs up

Re: "Duplicate Posts" in Home / Sidebar

rucheli770 wrote:

I'm getting this same error, and it seems to be caused by my Facebook Comments for Wordpress plugin... When I tried disabling the different plugins, that was the one that triggered it. I very greatly need that plugin to work, but I also can't have the theme broken sad Any ideas of how to fix this?? medical marijuana seeds for sale pot seeds for sale

Thanks so much!

Since it's wordpress your using, have you heard of SEO No Duplicates plugin? Whenever things start to get messy for me like that i find this plugin usually helps me sort it out quickly smile

Thumbs up