'Flickr', 'userid' => '80789124@N02', 'width' => '55' ); class Flickr extends WP_Widget { function __construct(){ $widget_options = array('description' => 'Flickr widget.' ); $control_options = array( 'width' => 440); $this->WP_Widget('flickr', '» Flickr Box', $widget_options, $control_options); } function widget($args, $instance){ global $wpdb; extract( $args ); $title = apply_filters('widget_title', $instance['title']); $userid = $instance['userid']; $width = $instance['width']; ?> "; foreach ($photos as $photo) { $src=preg_replace('/(.*)(staticflickr\.com\/)([^\"]*)(.*)/', '$3', $photo[2]); echo ".$photo[0].\r\n"; } ?>