Title: [Plugin: EG-Attachments] Include/Exclude by ID
Last modified: August 20, 2016

---

# [Plugin: EG-Attachments] Include/Exclude by ID

 *  [Joe Banks](https://wordpress.org/support/users/joenasagrc/)
 * (@joenasagrc)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-includeexclude-by-id/)
 * I’ve reviewed your documentation and I haven’t yet found the following:
 * Is it possible to include and exclude attachments by ID as with the gallery shortcode?
 * include=”33,44″ or exclude=”666″
 * Bonus: Include/exclude by type (PDF)
 * This plug-in is incredible!
 * [http://wordpress.org/extend/plugins/eg-attachments/](http://wordpress.org/extend/plugins/eg-attachments/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [IndraWP](https://wordpress.org/support/users/indrawp/)
 * (@indrawp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-includeexclude-by-id/#post-2603775)
 * I resolve this by adding the shortcode with :
 * `docid="id of your document,id of your document,"`
 *  [IndraWP](https://wordpress.org/support/users/indrawp/)
 * (@indrawp)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-includeexclude-by-id/#post-2603776)
 * this is the sampe of script i used :
    `[attachments label=doctitle fields="title,
   filename,size" title="Undang-Undang Dasar" titletag="h4" limit=2 docid="400,401,"]`
 *  Plugin Author [emmanuelg](https://wordpress.org/support/users/emmanuelg/)
 * (@emmanuelg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-includeexclude-by-id/#post-2603793)
 * Hi
 * I am preparing a new version where docID is replaced by the two parameters **
   include**, and **exclude**.
 * You can test the beta by downloading the [beta version](http://downloads.wordpress.org/plugin/eg-attachments.zip).
 * Emmanuel.
 *  [PeterWillard](https://wordpress.org/support/users/peterwillard/)
 * (@peterwillard)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-includeexclude-by-id/#post-2603794)
 * This is such a useful plugin! I am anxiously waiting for the exclude option 🙂
   Excellent addition!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: EG-Attachments] Include/Exclude by ID’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/eg-attachments_fbfbfb.svg)
 * [EG-Attachments](https://wordpress.org/plugins/eg-attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eg-attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eg-attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/eg-attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eg-attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eg-attachments/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [PeterWillard](https://wordpress.org/support/users/peterwillard/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-eg-attachments-includeexclude-by-id/#post-2603794)
 * Status: not resolved