Title: [Plugin: File Gallery] Custom Extension Type Broken
Last modified: August 20, 2016

---

# [Plugin: File Gallery] Custom Extension Type Broken

 *  Resolved [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/)
 * I have a custom extension type setup to display a PDf icon and have a pdf.png
   in the wp-includes/images/crystal folder.
 *     ```
       add_filter('ext2type', 'modify_ext2type');
       function modify_ext2type($filters) {
           $filters['document'] = array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'rtf' );
       	$filters['pdf'] = array( 'pdf' );
           return $filters;
       }
       ```
   
 * With the new version (1.7) the gallery plugin has reverted to displaying the 
   standard document icon, not the custom PDF icon. The PDF icon is displayed in
   the media tab but not the gallery.
 * [http://wordpress.org/extend/plugins/file-gallery/](http://wordpress.org/extend/plugins/file-gallery/)

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

 *  Plugin Author [Aesqe](https://wordpress.org/support/users/aesqe/)
 * (@aesqe)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455845)
 * [@darren](https://wordpress.org/support/users/darren/) Burns: thanks for letting
   me know about this, I’ll fix it for v1.7.4
 *  Plugin Author [Aesqe](https://wordpress.org/support/users/aesqe/)
 * (@aesqe)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455870)
 * [@darren](https://wordpress.org/support/users/darren/) Burns:
    File Gallery v1.7.4-
   RC2 is available for download from here: [http://downloads.wordpress.org/plugin/file-gallery.1.7.4-RC2.zip](http://downloads.wordpress.org/plugin/file-gallery.1.7.4-RC2.zip)
   and the problem should be fixed in this version.
 * v1.7.4-RC2 also supports multiple editors and drag and drop upload of files by
   dragging them onto File Gallery interface.
 * If you can, please test these features and tell me if they work alright or not.
 * Thanks! 🙂
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455872)
 * I should be able to have a look Wednesday if that is ok. I shall let you know
   how it goes.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455904)
 * [@aesqe](https://wordpress.org/support/users/aesqe/)
    Sorry for taking so long
   to check this. Things got busy then a baby arrived!!! Ahhh sleep, I remember 
   that.
 * I updated to 1.7.4 and it wasn’t working but I downloaded RC2 from the link you
   provided above and my PDF icons are appearing nicely. I dragged and dropped a
   new PDF and the gallery was updated with the new file.
 * Love your work.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455905)
 * Forgot to mention. I tested this with WordPress 3.3.1 and Genesis 1.8, using 
   the delicious child theme.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455924)
 * I just tested 1.7.4.1 and the icons for my PDF custom extension type aren’t showing.
   Do you know when the change you made in 1.7.4-RC2 that worked and had the icons
   showing will be in a release?
 * Thanks
 *  Plugin Author [Aesqe](https://wordpress.org/support/users/aesqe/)
 * (@aesqe)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455926)
 * **[@darren](https://wordpress.org/support/users/darren/) Burns:** I’ve moved 
   it to v1.7.5 – there’s a beta version you can download from here: [http://downloads.wordpress.org/plugin/file-gallery.zip](http://downloads.wordpress.org/plugin/file-gallery.zip)
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455927)
 * [@aesqe](https://wordpress.org/support/users/aesqe/): Thanks. I’ve downloaded
   the beta and look forward to 1.7.5.

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

The topic ‘[Plugin: File Gallery] Custom Extension Type Broken’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-gallery_fdfbfb.svg)
 * [File Gallery](https://wordpress.org/plugins/file-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/file-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/file-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/file-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-gallery/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-file-gallery-custom-extension-type-broken/#post-2455927)
 * Status: resolved