Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function makeImmagineGallery(){
- global $post;
- // PRINT THE CONTENTS OF $post
- echo 'POST:<br><pre>';
- print_r($post);
- echo '</pre>';
- $results = get_children( array(
- 'post_parent' => $post->ID,
- 'post_status' => 'inherit',
- 'post_type' => 'attachment',
- 'order' => 'ASC',
- 'orderby' => 'menu_order ID') );
- foreach ( $results as $image ) {
- // PRINT THE CONTENTS OF $image
- echo 'IMAGE:<br><pre>';
- print_r($image);
- echo '</pre>';
- echo '<img src="' . $image->guid . '" alt="immagine" />' . "\r\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement