Title: Make shortcode output searchable
Last modified: August 21, 2016

---

# Make shortcode output searchable

 *  [qBart](https://wordpress.org/support/users/qbart/)
 * (@qbart)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/make-shortcode-output-searchable/)
 * So I have this shortcode that outputs a file I uploaded elsewhere on the internet.
   
   It does so on every page load. This means that the shortcode content isn’t in
   the WordPress database.
 * How can I get shortcode output in the WordPress database?
    It should refresh 
   and check the external file periodically, to update the content in the WordPress
   database.
 * Currently I simple use (one line of code)
    `return '<div class="this">' . $stuff.'
   </div>';`
 * I would like to know how I can make sure that this $stuff also gets into the 
   WordPress library.
 * Thanks!

The topic ‘Make shortcode output searchable’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [qBart](https://wordpress.org/support/users/qbart/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/make-shortcode-output-searchable/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
