Viewing 1 replies (of 1 total)
  • Thread Starter chrislawhorn

    (@chrislawhorn)

    I figured this out…

    The problem was that, right above the Facebook Comment code I had a “Recent Posts” section that I’d created using this:

    http://codex.ww.wp.xz.cn/Function_Reference/query_posts

    But, as it points out on that page, using query_posts will “alter the main loop. Once you use query_posts(), your post-related global variables and template tags will be altered.”

    To that end, it was populating Facebook Comments with the last song in the Recent Songs section, instead of the url of the post the comment section appeared on.

    Changing the query_posts to this fixed the problem:

    http://codex.ww.wp.xz.cn/Function_Reference/get_posts

Viewing 1 replies (of 1 total)

The topic ‘Facebook Comments / Same Comments Every Post’ is closed to new replies.