Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All comments from other posts are synced to the sticky post #91

Closed
rafaucau opened this issue Jan 12, 2021 · 1 comment · Fixed by #92
Closed

All comments from other posts are synced to the sticky post #91

rafaucau opened this issue Jan 12, 2021 · 1 comment · Fixed by #92

Comments

@rafaucau
Copy link
Contributor

Describe the bug

When I stick a post to the top of a blog, all comments from other posts are synced to that one sticky post.

To Reproduce

Steps to reproduce the behavior:

  1. Add new post
  2. Check "Stick to the top of the blog" in the post settings
    image
  3. Publish post
  4. Run Disqus Comments Sync
  5. All comments from other posts are added to the sticky post.

Expected behavior

Comments should sync to the correct post instead of the sticky one.

Specifications:

  • Wordpress version: 5.6
  • Plugin version: 3.0.19
@rafaucau rafaucau changed the title All comments from other posts sync to the sticky post All comments from other posts are synced to the sticky post Jan 12, 2021
@rafaucau
Copy link
Contributor Author

The problem is with this query:

$post_query = new WP_Query( array(

The query should use 'ignore_sticky_posts' => true,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant