$post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($images) { $num_of_images = count($images); if ($offset > 0) : $start = $offset--; else : $start = 0; endif; if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images; endif; $i = 0; foreach ($images as $image) { if ($start <= $i and $i < $stop) { $img_title = $image->post_title; // title. $img_description = $image->post_content; // description. $img_caption = $image->post_excerpt; // caption. $img_url = wp_get_attachment_url($image->ID); // url of the full size image. $attachment_url = get_attachment_link($image->ID); // url of the atttachment. $preview_array = image_downsize( $image->ID, 'thumbnail' ); $img_preview = $preview_array[0]; // thumbnail or medium image to use for preview. /////////////////////////////////////////////////////////// // This is where you'd create your custom image/link/whatever tag using the variables above. // This is an example of a basic image tag using this method. ?> Genoa Italy Portofino {$image[1]} × {$image[2]}"; } /* Join the links in a string and return. */ return join( ' / ', $links ); } /* ========================== Function image 2 ========================== */ function singleimages($size = 'medium', $limit = '0', $offset = '0') { global $post; $images = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($images) { $num_of_images = count($images); if ($offset > 0) : $start = $offset--; else : $start = 0; endif; if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images; endif; $i = 0; foreach ($images as $image) { if ($start <= $i and $i < $stop) { $img_title = $image->post_title; /*title.*/ $img_description = $image->post_content; /*description.*/ $img_caption = $image->post_excerpt; /*caption.*/ $img_size = wp_get_attachment_image_src( $image->ID, 'medium' ); /* image size */ $img_url = wp_get_attachment_url($image->ID); /*url of the full size image.*/ $post_url = get_permalink($post->ID); /*url of the post.*/ $attachment_url = get_attachment_link($image->ID); /*url of the atttachment.*/ $attlink = get_attachment_link($att->ID); $preview_array = image_downsize( $image->ID, 'medium' ); /*thumbnail or medium or large image to use for preview.*/ $img_preview = $preview_array[0]; /* This is where you'd create your custom image/link/whatever tag using the variables above. This is an example of a basic image tag using this method. */?>

Genoa Italy Portofino

A trip to Italy

Italy, officially “the Italian Republic”, is located on the Italian Peninsula in Southern Europe and the two largest islands in the Mediterranean – Sicily and Sardinia. Italy shares its northern border with France, Switzerland, Austria and Slovenia. The independent states of San Marino and the Vatican City are enclaves on the Italian Peninsula, while Campione d’Italia is an Italian enclave in Switzerland.

A trip to italy

Italy’s total area is approximately 301,328 km2 and the country is about 1130 km long and 160 km wide over most of the peninsula. The widest point is located in the north and is 480 km, while the narrowest point is around the middle, where there is only 112 km wide. Italy is a very mountainous country, with narrow coastal plains. In general, Italy has a Mediterranean climate, which is mainly mild on the coast, and it gradually gets colder inland through the mountains. The temperature can be extremely high over Italy during the summer, while in northern Italy can be very cold during the winter.

 

 

$post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($images) { $num_of_images = count($images); if ($offset > 0) : $start = $offset--; else : $start = 0; endif; if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images; endif; $i = 0; foreach ($images as $image) { if ($start <= $i and $i < $stop) { $img_title = $image->post_title; // title. $img_description = $image->post_content; // description. $img_caption = $image->post_excerpt; // caption. $img_url = wp_get_attachment_url($image->ID); // url of the full size image. $attachment_url = get_attachment_link($image->ID); // url of the atttachment. $preview_array = image_downsize( $image->ID, 'thumbnail' ); $img_preview = $preview_array[0]; // thumbnail or medium image to use for preview. /////////////////////////////////////////////////////////// // This is where you'd create your custom image/link/whatever tag using the variables above. // This is an example of a basic image tag using this method. ?> Italy vacation {$image[1]} × {$image[2]}"; } /* Join the links in a string and return. */ return join( ' / ', $links ); } /* ========================== Function image 2 ========================== */ function singleimages($size = 'medium', $limit = '0', $offset = '0') { global $post; $images = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($images) { $num_of_images = count($images); if ($offset > 0) : $start = $offset--; else : $start = 0; endif; if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images; endif; $i = 0; foreach ($images as $image) { if ($start <= $i and $i < $stop) { $img_title = $image->post_title; /*title.*/ $img_description = $image->post_content; /*description.*/ $img_caption = $image->post_excerpt; /*caption.*/ $img_size = wp_get_attachment_image_src( $image->ID, 'medium' ); /* image size */ $img_url = wp_get_attachment_url($image->ID); /*url of the full size image.*/ $post_url = get_permalink($post->ID); /*url of the post.*/ $attachment_url = get_attachment_link($image->ID); /*url of the atttachment.*/ $attlink = get_attachment_link($att->ID); $preview_array = image_downsize( $image->ID, 'medium' ); /*thumbnail or medium or large image to use for preview.*/ $img_preview = $preview_array[0]; /* This is where you'd create your custom image/link/whatever tag using the variables above. This is an example of a basic image tag using this method. */?>

Italy vacation

$post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($images) { $num_of_images = count($images); if ($offset > 0) : $start = $offset--; else : $start = 0; endif; if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images; endif; $i = 0; foreach ($images as $image) { if ($start <= $i and $i < $stop) { $img_title = $image->post_title; // title. $img_description = $image->post_content; // description. $img_caption = $image->post_excerpt; // caption. $img_url = wp_get_attachment_url($image->ID); // url of the full size image. $attachment_url = get_attachment_link($image->ID); // url of the atttachment. $preview_array = image_downsize( $image->ID, 'thumbnail' ); $img_preview = $preview_array[0]; // thumbnail or medium image to use for preview. /////////////////////////////////////////////////////////// // This is where you'd create your custom image/link/whatever tag using the variables above. // This is an example of a basic image tag using this method. ?> Italy small town {$image[1]} × {$image[2]}"; } /* Join the links in a string and return. */ return join( ' / ', $links ); } /* ========================== Function image 2 ========================== */ function singleimages($size = 'medium', $limit = '0', $offset = '0') { global $post; $images = get_children( array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ); if ($images) { $num_of_images = count($images); if ($offset > 0) : $start = $offset--; else : $start = 0; endif; if ($limit > 0) : $stop = $limit+$start; else : $stop = $num_of_images; endif; $i = 0; foreach ($images as $image) { if ($start <= $i and $i < $stop) { $img_title = $image->post_title; /*title.*/ $img_description = $image->post_content; /*description.*/ $img_caption = $image->post_excerpt; /*caption.*/ $img_size = wp_get_attachment_image_src( $image->ID, 'medium' ); /* image size */ $img_url = wp_get_attachment_url($image->ID); /*url of the full size image.*/ $post_url = get_permalink($post->ID); /*url of the post.*/ $attachment_url = get_attachment_link($image->ID); /*url of the atttachment.*/ $attlink = get_attachment_link($att->ID); $preview_array = image_downsize( $image->ID, 'medium' ); /*thumbnail or medium or large image to use for preview.*/ $img_preview = $preview_array[0]; /* This is where you'd create your custom image/link/whatever tag using the variables above. This is an example of a basic image tag using this method. */?>

Italy small town

You might also like these post :

Comments are closed