diff --git a/components/featured.php b/components/featured.php
index 1de7681..fee5260 100644
--- a/components/featured.php
+++ b/components/featured.php
@@ -1,40 +1,34 @@
-
+
'post',
'tax_query' => array(
array(
- 'taxonomy' => 'niveau',
- 'terms' => 'featured',
+ 'taxonomy' => 'category',
+ 'terms' => 'blog',
'field' => 'slug',
)
),
'orderby' => 'date',
- 'post_count' => '2',
- 'order' => 'DESC'
+ 'post_count' => '1',
+ 'order' => 'DESC',
+ 'posts_per_page' => '1'
));
-
+
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-
-
-
-
-
-
- " . $category[0]->cat_name . ""; ?>
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ term_id ) ) . "' class='btn-small btn-info'> " . $category[0]->cat_name . ""; ?>
+
+
+
+
+
Lire l'article
+
+
-
-
-
-
diff --git a/home.php b/home.php
new file mode 100644
index 0000000..7b47e62
--- /dev/null
+++ b/home.php
@@ -0,0 +1,20 @@
+
+
+
+
+ ' . get_the_title( $page ) . '';
+ echo '' . $page->post_content . '
';
+ }
+ echo 'Dernier article
';
+ include(TEMPLATEPATH . '/components/featured.php');
+ }
+ ?>
+ Publications
+
+
+
+
+
diff --git a/index.php b/index.php
index b20b7c2..0c3e968 100644
--- a/index.php
+++ b/index.php
@@ -1,10 +1,7 @@
- À la une
-
-
- Articles récents
-
+ Publications
+