diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/selecta/archives.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/selecta/archives.php Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,92 @@
+get_results("SELECT * FROM " . $wpdb->posts . " WHERE post_status='publish' AND post_type = 'post' GROUP BY $wpdb->posts.ID ORDER BY post_date DESC");
+ $last_month = date("m Y", strtotime($fetch_archive[0]->post_date));
+ get_header();
+?>
+
+
+
post_date)); ?>
+
+
+ post_date));
+ foreach($fetch_archive as $archive_data) :
+ $get_post_video = get_post_meta($post->ID, "main_video", true);
+ $get_thumbnail = get_post_meta($archive_data->ID, "other_media", true);
+ $get_video_thumbnail = get_post_meta($archive_data->ID, "video_thumbnail", true);
+ $post_image = "";
+ if($get_thumbnail == "") :
+ $post_image = fetch_post_image($archive_data->ID, "300", "2000");
+ endif;
+ $category_id = get_the_category($archive_data->ID);
+ $this_category = get_category($category_id[0]->term_id);
+ $this_category_link = get_category_link($category_id[0]->term_id);
+ $link = get_permalink($archive_data->ID);
+ if(date("m Y", strtotime($archive_data->post_date)) !== $last_month) :
+ $count = 1;
+ $month_count++;
+ ?>
+
+
+
+
+
post_date)); ?>
+
+
+
+
+ - >
+
+
+
+
+
+ post_date));
+ endforeach;
+ ?>
+
+
+
+
+
+