Title: Trouble adding multiple IDs with wpdiscuz_comments_args
Last modified: August 11, 2023

---

# Trouble adding multiple IDs with wpdiscuz_comments_args

 *  Resolved [DC38746](https://wordpress.org/support/users/dc38746/)
 * (@dc38746)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/trouble-adding-multiple-ids-with-wpdiscuz_comments_args/)
 * Hi,
 * I’m trying to display all comments from a set of post IDs passed as an array.
   It looks like wpdiscuz_comments_args should do the trick, but so far no luck.
   Would love any feedback or suggestions. Here is my basic test code:
 *     ```wp-block-code
       add_filter('wpdiscuz_comments_args', function ($args) {
           global $post;
           if ($post->ID != 619) { // Only on this post
               return $args;
           }
   
           $post_ids = array(416,419,422);
           $args['post_id'] = 0;
           $args['comment__in'] = $post_ids;
   
           return $args;
       }
       ```
   
 * I’ve confirmed that the filter fires on the correct post. Is comment__in not 
   supported maybe? Or some other place where the current post ID is getting reset?
   
   Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/trouble-adding-multiple-ids-with-wpdiscuz_comments_args/#post-16970906)
 * We’re really sorry, but wpDiscuz is designed to display comments under certain
   posts. Even if you find a way to include the comments from one post under another,
   there is not any guarantee that it’ll work fine.

Viewing 1 replies (of 1 total)

The topic ‘Trouble adding multiple IDs with wpdiscuz_comments_args’ is closed to
new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/trouble-adding-multiple-ids-with-wpdiscuz_comments_args/#post-16970906)
 * Status: resolved