$alw_id, 'post_type' => 'animated_live_wall', 'orderby' => 'ASC', ); $loop = new WP_Query( $allimages ); while ( $loop->have_posts() ) : $loop->the_post(); ?>
0 ) { $alw_total_images = count( $alw_get_settings['image-ids'] ); $count = 0; foreach ( $alw_get_settings['image-ids'] as $attachment_id ) { // $attachment_id; $image_link_url = $alw_get_settings['image-link'][ $count ]; $thumb = wp_get_attachment_image_src( $attachment_id, 'thumb', true ); $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail', true ); $medium = wp_get_attachment_image_src( $attachment_id, 'medium', true ); $large = wp_get_attachment_image_src( $attachment_id, 'large', true ); $full = wp_get_attachment_image_src( $attachment_id, 'full', true ); $custum_500x500 = wp_get_attachment_image_src( $attachment_id, 'custum_500x500', true ); $custum_800x800 = wp_get_attachment_image_src( $attachment_id, 'custum_800x800', true ); $postthumbnail = wp_get_attachment_image_src( $attachment_id, 'post-thumbnail', true ); $attachment_details = get_post( $attachment_id ); $href = get_permalink( $attachment_details->ID ); $src = $attachment_details->guid; $title = $attachment_details->post_title; $description = $attachment_details->post_content; // set thumbnail size if ( $alw_thumb_size == 'thumbnail' ) { $thumbnail_url = $thumbnail[0]; } if ( $alw_thumb_size == 'medium' ) { $thumbnail_url = $medium[0]; } if ( $alw_thumb_size == 'large' ) { $thumbnail_url = $large[0]; } if ( $alw_thumb_size == 'full' ) { $thumbnail_url = $full[0]; } ?>
<?php echo esc_html( $title ); ?>