Title: change function for slideshow
Last modified: August 20, 2016

---

# change function for slideshow

 *  [hutton001](https://wordpress.org/support/users/hutton001/)
 * (@hutton001)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/change-function-for-slideshow/)
 * hi, i have created this function for insert the images in slideshow to a specific
   page. But now, i need to insert the same image on all pages of the site.
    this
   is the function:
 *     ```
       function makeImmagineGallery()
       {
       	global $post;
       	$results = get_children( array(
       		'post_parent' => $post->ID,
       		'post_status' => 'inherit',
       		'post_type' => 'attachment',
       		'order' => 'ASC',
       		'orderby' => 'menu_order ID') );
       	foreach ( $results as $image ) echo '<img src="' . $image->guid . '" alt="immagine" />' . "\r\n";
       }
       ```
   

The topic ‘change function for slideshow’ is closed to new replies.

## Tags

 * [attachment](https://wordpress.org/support/topic-tag/attachment/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [hutton001](https://wordpress.org/support/users/hutton001/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/change-function-for-slideshow/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
