WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
[resolved] Disqus plugin should import disqus comment IDs too (3 posts)

  1. archon810
    Member
    Posted 1 year ago #

    Please correct me if I'm wrong but right now there's no way to correlate the local WordPress comment id with the Disqus comment id, is there?

    I'm trying to create the right #links to jump to the right comment on post pages but the problem is, the comments themselves are coming from the local db, and http://blabla.com/foo#LOCAL_COMMENT_ID doesn't jump anywhere since the IDs on the page are the Disqus ones.

    I looked at the wp_commentmeta table, but it looks like Disqus only populates dsq_parent_post_id and dsq_post_id but not dsq_comment_id.

    It'd be fantastic if there was either a way to query the API for the Disqus comment id or it should just get synced to the local db during comment sync.

    Or am I missing something and this is already possible?

    Thanks.

    http://wordpress.org/extend/plugins/disqus-comment-system/

    Cross-posted to https://github.com/disqus/disqus-wordpress/issues/49

  2. Tyler Hayes
    Member
    Plugin Contributor

    Posted 1 year ago #

    Comments are known as posts in the Disqus API. Posts (as WordPress calls them) are known as threads in the Disqus API.

    So dsq_post_id is exactly what you're looking for; that's the comment ID in Disqus.

  3. archon810
    Member
    Posted 1 year ago #

    Doh! In my defense, using "posts" for comment IDs in a situation where posts exist is confusing!

    Thanks, Tyler.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic