• Resolved mbielicki

    (@mbielicki)


    In the disqus_params array, there is a key for category but it isn’t defined anywhere that I saw. I’ve defined it above api_key variable and set it to the category id value from the Disqus admin settings.

    ...
    $category = get_option( 'disqus_rcw_date_category_id' );
    $api_key = get_option( 'disqus_rcw_api_key' );
    ...

    Will this change cause any problems to your code and is it something you could add to a future release?

    Thank you!

    https://www.ads-software.com/plugins/disqus-recent-comments-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Bartel

    (@andrew-bartel)

    Hey mbielicki, thanks for the contribution! That should be totally fine, I’ll look at adding it to the next version and will give you props in the release notes.

    Plugin Author Andrew Bartel

    (@andrew-bartel)

    Hey mbielicki, I updated to version 1.2 tonight and I wanted to let you know that I went through looking at adding an additional setting in the admin page and decided against it. That parameter for disqus requires a category id (https://disqus.com/api/docs/posts/list/), and most non developers won’t know what that is I think.

    If you do want to send a category id to disqus however, the parameters that are sent are filterable through the disqus_rcw_disqus_parameters filter (see line 86). If you need help putting that code together, please reply in this topic and I’d be happy to post an example.

    I would really like to use categories too. I found the place on the disqus website under advanced where you add them and get the ID. I just don’t know how to get the plugin to ask for the category when people add a comment and then pass it along etc. I’m not really a programmer but I’m fairly adept with cut and paste if I know which file and after what line to paste it.

    Plugin Author Andrew Bartel

    (@andrew-bartel)

    Hey Wellsdm, I’ll put together a copy pastable example for you in here in the next couple of days.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add Disqus category to disqus_params array’ is closed to new replies.