Title: Remove File Names
Last modified: September 1, 2016

---

# Remove File Names

 *  [vivnt](https://wordpress.org/support/users/vivnt/)
 * (@vivnt)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/remove-file-names/)
 * I saw a previous post that wanted to remove the file name. However, the function
   that was given removed the images as well as the file name. Can anyone help?
 * [https://wordpress.org/plugins/bbpress-multi-image-uploader/](https://wordpress.org/plugins/bbpress-multi-image-uploader/)

Viewing 1 replies (of 1 total)

 *  [unconquered](https://wordpress.org/support/users/unconquered/)
 * (@unconquered)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/remove-file-names/#post-8587855)
 * Hey I had the exact same problem and saw the previous thread. Yes it gets rid
   of the entire thing. I’m not too familiar with php and there could be 100 better
   ways to solve this. Here is what I did
 * open the **plugins/bbpress-multi-image-uploader/Includes/Common/function.php**
 * Now search for
 *     ```
       if( !empty( $attachments ) ) { ?>
   
       <div class="shr-reply-attach"><?php
       foreach( $attachments as $attachment ) {
       $attach = wp_get_attachment_image_src( $attachment->ID , 'thumbnail' );
       $attach_full  = wp_get_attachment_image_src( $attachment->ID, 'full' ); ?>
       <a href="<?php echo $attach_full[0]; ?>" class="thickbox bbp-uploader-thumb">
       <img src="<?php echo $attach[0] ?>" alt="<?php echo $attachment->post_name; ?>" />
       ```
   
 * Right under it you’ll see `<span><?php echo basename( pathinfo( $attach_full[
   0], PATHINFO_FILENAME ) ) ?></span>`
    **Delete** this entire line. Or you can
   also comment it if you want to save it for later use (note if you use an editor
   it will be line number 224)
 * Also note that entire section is where you can style the attachments with CSS
    -  This reply was modified 9 years, 5 months ago by [unconquered](https://wordpress.org/support/users/unconquered/).
    -  This reply was modified 9 years, 5 months ago by [unconquered](https://wordpress.org/support/users/unconquered/).
    -  This reply was modified 9 years, 5 months ago by [unconquered](https://wordpress.org/support/users/unconquered/).

Viewing 1 replies (of 1 total)

The topic ‘Remove File Names’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbpress-multi-image-uploader_fefefe.
   svg)
 * [bbPress Multi Image Uploader](https://wordpress.org/plugins/bbpress-multi-image-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-multi-image-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-multi-image-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-multi-image-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-multi-image-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-multi-image-uploader/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [unconquered](https://wordpress.org/support/users/unconquered/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/remove-file-names/#post-8587855)
 * Status: not resolved