'photograph', 'paged' => $paged )); while (have_posts()) : the_post(); get_template_part('content','photograph'); endwhile; if ( $wp_query->max_num_pages > 1 ) : ?> get_description(); preg_match('/href="([^"]*)"/', $rss_pin_description, $link); $href = $link[1]; unset($link); preg_match('/src="([^"]*)"/', $rss_pin_description, $image); $src = $image[1]; unset($image); $pin_caption = strip_tags( $rss_pin_description ); $date = $item->get_date('j F Y | g:i a'); echo ' '; endforeach; } }elseif(get_option('photogram_home')=='Picasa'){ $feed_url = "http://picasaweb.google.com/data/feed/base/user/".get_option('photogram_username_picasa')."?alt=rss&kind=photo&hl=id&imgmax=1600&max-results=".get_option('photogram_piccount_picasa')."&start-index=1"; $latest_pins = colabs_pinterest_get_rss_feed( $user, $limit, $feed_url ); if(!empty( $latest_pins ) ){$ii=0; foreach ( $latest_pins as $item ): $rss_pin_description = $item->get_description(); preg_match('/href="([^"]*)"/', $rss_pin_description, $link); $href = $link[1]; unset($link); preg_match('/src="([^"]*)"/', $rss_pin_description, $image); $src = $image[1]; unset($image); $pin_caption = strip_tags( $rss_pin_description ); $date = $item->get_date('j F Y | g:i a'); echo ' '; endforeach; } }else{ query_posts( array('post_type' => 'post', 'post__not_in' =>get_option('sticky_posts'), 'paged' => $paged ) ); if(have_posts()): while(have_posts()): the_post(); get_template_part('content','photograph'); endwhile; endif; if ( $wp_query->max_num_pages > 1 ) : ?>