From 5fd9705e7743f6bc57af18bd5c3aca7747cf9f6e Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 10 Jun 2015 11:04:23 -0400 Subject: [PATCH] Some fixes for the blog feed. Including frontpage --- front-page.php | 38 +++++++++------------------------- page.php | 10 +++++++-- parts/blog-feed.php | 50 +++++++++++++++++++++++++++------------------ 3 files changed, 48 insertions(+), 50 deletions(-) diff --git a/front-page.php b/front-page.php index e2dd2d2..fa49ac2 100644 --- a/front-page.php +++ b/front-page.php @@ -5,40 +5,22 @@
-
-
- - - -

- +
+
+ + + +

+ +
+
-
-
-
-

Upcoming Events

- 3); - $lastposts = get_posts( $args ); - foreach($lastposts as $post) : setup_postdata($post); ?> -
- ID, array(120, 100)); ?> - -
- -
- -

-

- read more... -
- -
+
diff --git a/page.php b/page.php index a503087..0c7277c 100644 --- a/page.php +++ b/page.php @@ -9,13 +9,19 @@
-

- + + + +
+
+
+ +
diff --git a/parts/blog-feed.php b/parts/blog-feed.php index a7e6f76..0998199 100644 --- a/parts/blog-feed.php +++ b/parts/blog-feed.php @@ -1,25 +1,35 @@ - -
-

Upcoming Events

+ + get_query_var('name'),'numberposts' => 3, 'order_by' => 'date'); + $args = array( 'category_name' => $cat_name,'numberposts' => 3, 'order_by' => 'date'); $lastposts = get_posts( $args ); - foreach($lastposts as $post) : setup_postdata($post); ?> -
- ID, array(130, 130)); ?> - -
- + if ($lastposts) { ?> +
+

Upcoming Events

+ +
+ ID, array(130, 130)); ?> + +
+ +
+
+ +
+ +

+

+ read more...
-
- -
- -

-

- read more...
+
- -
- \ No newline at end of file + \ No newline at end of file -- 2.17.1