Title: Function inside a function?
Last modified: August 20, 2016

---

# Function inside a function?

 *  [r1987](https://wordpress.org/support/users/r1987/)
 * (@r1987)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/function-inside-a-function/)
 * Hello !
 * Cause I’m not really good at php then i don’t know how to solve this problem.
 * I have a function in functions.php that searches for attachments in the post.
   If there are attachments, then it will show them between
    `<li>` tags.
 * _[[code moderated – please use the pastebin](http://codex.wordpress.org/Forum_Welcome#Posting_Code)]_
 * This far everything works!
 * What I actually want is to enter a [my_post_slides] shortcode in my post. So 
   in theory it should connect the gc_get_images function and the shortcode function
   that returns the html also
 * Any help guys?

Viewing 1 replies (of 1 total)

 *  Thread Starter [r1987](https://wordpress.org/support/users/r1987/)
 * (@r1987)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/function-inside-a-function/#post-2512654)
 * Pastebin aadress: [http://pastebin.com/TA5nKdtQ](http://pastebin.com/TA5nKdtQ)
 * So how to create a shortcode [my_post_slides] that outputs the post attachments
   between html tags?

Viewing 1 replies (of 1 total)

The topic ‘Function inside a function?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [r1987](https://wordpress.org/support/users/r1987/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/function-inside-a-function/#post-2512654)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
