Title: Pull attachment from another WP database&#8230;
Last modified: August 20, 2016

---

# Pull attachment from another WP database…

 *  [dados](https://wordpress.org/support/users/dados/)
 * (@dados)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/pull-attachment-from-another-wp-database/)
 * Hi,
 * I have code to pull posts from another wordpress database and show it… The post
   is from post type community.. And everything work great.. but I need to pull 
   attachment ( featured image ) and link to this post.. Please see this code below
   and if you know what I need to add to get result it will be great!
 * Code for function what need to pull…
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

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

 *  Thread Starter [dados](https://wordpress.org/support/users/dados/)
 * (@dados)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/pull-attachment-from-another-wp-database/#post-2591561)
 * And of course this data for connection to database is not correct I just use 
   it for example.. if you try to connect with this data you will not success..
 *  Thread Starter [dados](https://wordpress.org/support/users/dados/)
 * (@dados)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/pull-attachment-from-another-wp-database/#post-2591776)
 * Code is now on pastebin, please see it there…
    [http://pastebin.com/ihHBtX4t](http://pastebin.com/ihHBtX4t)
 *  Thread Starter [dados](https://wordpress.org/support/users/dados/)
 * (@dados)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/pull-attachment-from-another-wp-database/#post-2591877)
 * Can anybody help me please!?

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

The topic ‘Pull attachment from another WP database…’ is closed to new replies.

## Tags

 * [external database](https://wordpress.org/support/topic-tag/external-database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [dados](https://wordpress.org/support/users/dados/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/pull-attachment-from-another-wp-database/#post-2591877)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
