Title: All attachments view?
Last modified: August 19, 2016

---

# All attachments view?

 *  [ziggyzack99](https://wordpress.org/support/users/ziggyzack99/)
 * (@ziggyzack99)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/all-attachments-view/)
 * Let’s say my blog URL is [http://podtube.co.cc/wordpress](http://podtube.co.cc/wordpress).
   What would the URL be where users could view EVERY uploaded attachment?
    [http://podtube.co.cc/wordpress/media&#8230](http://podtube.co.cc/wordpress/media&#8230);
   no. What is it?

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

 *  Thread Starter [ziggyzack99](https://wordpress.org/support/users/ziggyzack99/)
 * (@ziggyzack99)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/all-attachments-view/#post-883089)
 * I need help.
 *  [accuweb](https://wordpress.org/support/users/accuweb/)
 * (@accuweb)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/all-attachments-view/#post-883091)
 * ZiggyZack99,
 * All Attachments/uploaded contents are always stored in the wp-contents/upload
   folder. But in that folder wordpress is creating folder with year and inside 
   that another folder with month.
 * If today I upload one screen capture then it will be stored on the server at 
   below mentioned path:
 * wp-content/uploads/2008/10/screencapture.jpg
 * [spam link removed]
 * Thanks,
 *  Thread Starter [ziggyzack99](https://wordpress.org/support/users/ziggyzack99/)
 * (@ziggyzack99)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/all-attachments-view/#post-883094)
 * Thanks, accuweb, but what I was looking for was something that would look nice
   and be with my theme that displays all attachments and links to their respective
   pages.
 *  Thread Starter [ziggyzack99](https://wordpress.org/support/users/ziggyzack99/)
 * (@ziggyzack99)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/all-attachments-view/#post-883102)
 * Help?
 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/all-attachments-view/#post-883163)
 * I don’t know if there is any command for this, but you can do it as following:
 * To display all the uploads / attachments, you need to change path of your upload
   directory, change that path under your theme files and you shall be able to display
   all the attachments by a public URL.
 *  [mkalis](https://wordpress.org/support/users/mkalis/)
 * (@mkalis)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/all-attachments-view/#post-883168)
 * I think you can just take it from the database. It would look something like 
   this. And take a look at the names used in the table – you can use all of those.
 *     ```
       global $wpdb;
       $attachments = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'posts WHERE post_type="attachment");
       foreach ($attachments as $attachment) {
          echo $attachment->post_title;
          // etc your code goes here (display what you want)
       }
       ```
   

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

The topic ‘All attachments view?’ is closed to new replies.

## Tags

 * [all](https://wordpress.org/support/topic-tag/all/)
 * [view](https://wordpress.org/support/topic-tag/view/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [mkalis](https://wordpress.org/support/users/mkalis/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/all-attachments-view/#post-883168)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
